MapTools.org

[Chameleon] curiosity with rulertool

Paul Spencer spencer@dmsolutions.ca
Thu, 16 Oct 2003 11:34:30 -0400
Bart,

this would be a bug :)  Please enter it into the Chameleon bugzilla, I 
will look into solving it.

Cheers,

Paul

Bart van den Eijnden wrote:

> Hi list,
> 
> I found a curiosity in the behaviour of the rulertool. This applies to 
> Chameleon 1.1.
> 
> For the rulertool to work properly (i.e. measure distance correctly) on 
> the first map which is generated, the size of the MAP object (SIZE X Y) 
> needs to be the same as the size of DHTMLWidget in the HTML template. 
> Otherwise the distance is not calculated correctly.
> 
> When a user zooms, or pans, the rulertool works fine. So I guess this 
> possible problem only applies to the first generated map (initialization 
> of the map object?).
> 
> Is this behaviour intended, i.e. do we always need to adjust the size of 
> the MAP object to the size of the DHTMLWidget?
> 
> Best regards,
> Bart
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



This archive was generated by Pipermail.