we need to change LODs on the fly as users change dynamic map services vs tiled layers (basemaps). modifying the LODs works as expected except that the zoom slider navigation bit doesn't update to reflect the new LODs. can't really see anything in the API that might be used to refresh/updaet the zoom slider.
any ideas?
thanks.
Solved! Go to Solution.
Paul,
Try this map.removeAllLayers and then map.lods=[]; and then add the new layers.
found another interesting issue, if we add in extra LODs for hi-res map services/base maps, the mouse wheel stops working for zoom out events once you zoom in past 1;1,000. it does fire an extent changed event (but with bogus levelChange-false) but doesn't fire zoomStart, etc. events. zoom in w/mouse wheel works as expected, as does control-double click for zoom out.
as a workaround, thinking have to look at map mouse events to see if mouse wheel was used & the direction vs scale. any better ideas?
Paul,
Try this map.removeAllLayers and then map.lods=[]; and then add the new layers.
actually it seems that just flushing the existing LODs is enough. so just
theMap.lods=[];
resets the slider zoom, mouse wheel zoom out, etc. works as expected.
thanks for the tip.