In ArcGIS JS API, I would like to know and display the scale of a dynamic service layer by using the onExtentChange event, but the LOD argument is only valid for tile map services. Is there an equivalent way for dynamic map services?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
The scale property applies to the map, not the individual layer, so you can use map.getScale() to display it. You can get the map's level using map.getLevel(), but as you identified this only applies if there is a tiled layer in the map. |
|||||||||||||
|