Select to view content in your preferred language

LODs change, zoom slider doesn't

3391
3
Jump to solution
07-21-2014 02:31 AM
PaulHastings
Emerging Contributor

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.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Paul,

  Try this map.removeAllLayers and then map.lods=[]; and then add the new layers.

View solution in original post

0 Kudos
3 Replies
PaulHastings
Emerging Contributor

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?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Paul,

  Try this map.removeAllLayers and then map.lods=[]; and then add the new layers.

0 Kudos
PaulHastings
Emerging Contributor

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.

0 Kudos