AnsweredAssumed Answered

Change map scale based on the layer

Question asked by vinaybansal on May 7, 2013
Latest reply on May 26, 2013 by vinaybansal
Hi All,
(Javascript API 3.4 and ArcGIS 10.1)

I have a scenario where I have Bing Base map and DynamicMapService Layer. There is a drop down to select the scale and user has the ability to enter scale. Now the problem is that when Bing map is On, and user selects the scale from dropdown say 20000, map zooms to scale (18666) which is obvious since Bing base map is there and it is following the scale range of Bing. Now when I remove the Bing base map from my map control , now I want to set the scale 20000, and since only dynamicmapservice is there on the map, then it should follow the scale ranges of dynamic map services, but it still zooms to 18666.
Means, when base map is on it should follows the basemap scale, and if basemap is removed, it should follows the scale range of dynamicmapservice layer., i.e. I need to switch dynamically between (Basemap + DynamicMapServicelayer) scenario  to DynamicMapService layer on map.

So please let me know if this is possible.

Thanks to all.