How to change lods of map when change layers of map

3542
3
Jump to solution
04-23-2015 09:37 PM
lasinh
by
New Contributor III

I have 2 ArcGISTiledMapServiceLayer services and cached with different scales. a ArcGISTiledMapServiceLayer services  cached with scales(1000000, 500000, 200000, 100000, 50000, 20000, 10000). other ArcGISTiledMapServiceLayer  cached(12500000, 2000000, 1000000). how to change myMap  when change ArcGISTiledMapServiceLayer services

0 Kudos
1 Solution

Accepted Solutions
khairulamri
Occasional Contributor
3 Replies
khairulamri
Occasional Contributor

here is the example from esri :

https://developers.arcgis.com/javascript/jssamples/map_switch_layer_on_zoom.html

hope this helps

Amri

lasinh
by
New Contributor III

no, when change service map , change scalebar  of map?

0 Kudos
khairulamri
Occasional Contributor

what if get the extent based on map service, esri/graphicsUtils | API Reference | ArcGIS API for JavaScript

after that, zoom the map to the updated mapservice using map.setExtent

0 Kudos