[Chameleon] PanMap Widget

Julien-Samuel Lacroix jlacroix at mapgears.com
Tue Jun 20 11:06:30 EDT 2006


Hi Liz,
Thanks for the contribution. We'll open a bug and add it to the code.
I'm not sure I understand the first change you made though. Is it a 
change to support variable mapsize in JSAPI mode which you will 
contribute later?

Julien

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

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list