[Chameleon] PanMap Widget

Normand Savard nsavard at mapgears.com
Tue Jun 20 13:22:29 EDT 2006


Liz Godwin wrote:

> Hi there,
>
> I'm not actively in the developers group right now so I'll just submit 
> this change to this list.  If it's believed that it should be added to 
> the CVS version, great!
>
> Attached is a copy of my PanMap.widget.php file.  Changes are as follows:
> 1.  support for JSAPI, and variable mapsizes (a consequence of other 
> chnages I've made to support variable mapsizing in JSAPI mode)
>
> By this I mean that changing the size of a map was not possible in 
> JSAPI mode.  I've done this, but rather roughly for now, in other 
> files.  Because the page would need to be redrawn to support a map 
> resize, having PanMap talk to JSAPI for map size was not necessary.
>
> Also, in implementing this I discovered that the draggable area was 
> restricted to the initial size of the map.  So there's a line in there 
> updating this too.
>
> 2.. support for recentre on click, not just pan.
> Previously, if a user clicked on a point, it was caught and nothing 
> happened.  Now it's recentering on that point.  I took code from the 
> recentre widget to do this.
>
>
> I think these are good changes.  I realize that the JSAPI support may 
> not be relevant yet, but the widget could always be ready for when it is.
>
> Cheers
>
> Liz Godwin
>
> P.S.  I originally sent the file unzipped so it may be stuck in a 
> moderator's list someplace.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Chameleon mailing list
>Chameleon at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/chameleon
>  
>
Hi Liz,

We opened bug MT 1506 to track down these changes to PanMap widget.

Norm


More information about the Chameleon mailing list