When turning layers on/off and when panning my legend does not update.  Only
zoom will update the legend.  I have registered:

// ** REGISTER MAP EVENT TO UPDATE LEGEND AFTER LAYER CHANGE ** //
map.events.register('changelayer', map, function() {
legLyrStore.data.items[0].set("legendURL", "http:// ~getLegendGraphic ~");
});
.....

and:

// ** REGISTER MAP EVENT TO UPDATE LEGEND AFTER ZOOM OR PAN ** //
map.events.register('moveend', map, function() {
 legLyrStore.data.items[0].set("legendURL", "http:// ~getLegendGraphic ~");
});

Live at: http://floodatlas.org/wcmp/DEV/

Any suggestions to get the moveend to recognize panning and tips to get
changelayer to work?
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to