When turning layers on/off and when panning my legend does not update. Only zoom will update the legend. I have registered:<div><br></div><div><div>// ** REGISTER MAP EVENT TO UPDATE LEGEND AFTER LAYER CHANGE ** //</div>
<div>map.events.register('changelayer', map, function() { </div><div><span class="Apple-tab-span" style="white-space:pre">                </span>legLyrStore.data.items[0].set("legendURL", "http:// ~getLegendGraphic ~");</div>
</div><div>});</div><div>.....</div><div><br></div><div>and:</div><div><br></div><div><div>// ** REGISTER MAP EVENT TO UPDATE LEGEND AFTER ZOOM OR PAN ** //</div><div>map.events.register('moveend', map, function() { </div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>legLyrStore.data.items[0].set("legendURL", "http:// ~getLegendGraphic ~");</div></div><div>});</div><div><br></div><div>Live at: <a href="http://floodatlas.org/wcmp/DEV/">http://floodatlas.org/wcmp/DEV/</a></div>
<div><br></div><div>Any suggestions to get the moveend to recognize panning and tips to get changelayer to work?</div><div><br></div>