[Users] Changelayer and moveend events to update legend

Jason Hochschild sk1 at sk1consulting.com
Fri Sep 2 19:05:29 CEST 2011


I've registered an event on 'changelayer' and 'moveend' so as to update my
legend whenever a layer is turned on/off or the map is zoomed (zoom because
I am using geowebcache and have SLD based on scale).

In Chrome13 and FF6 and IE8, it seems the changelayer event and the pan
portion of the moveend event does not work.  (legend only updates on zoom)

In IE9, it seems the first changelayer event works but then additional
visibility changes do not register.  Surprisingly, the pan event will update
the legend and the first changelayer event will respond again after a
pan/zoom.

Application: http://floodatlas.org/wcmp/DEV/
map.events.register starts at line 1170

fyi, I'm running both OL and GeoExt from trunk.

Thanks for any help and suggestions.

-Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110902/1107331a/attachment.htm 


More information about the Users mailing list