Select to view content in your preferred language

How to change lods of map when change layers of map

3689
3
Jump to solution
04-23-2015 09:37 PM
lasinh
by
Occasional Contributor

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
Deactivated User
3 Replies
khairulamri
Deactivated User

here is the example from esri :

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

hope this helps

Amri

lasinh
by
Occasional Contributor

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

0 Kudos
khairulamri
Deactivated User

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