Select to view content in your preferred language

displaying scale of dyamic map service layer

478
1
10-14-2012 05:28 PM
Egan_LouisFajardo
Occasional Contributor
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?
0 Kudos
1 Reply
StephenLead
Honored Contributor
The scale property applies to the map, not the individual layer, so you canuse 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.
0 Kudos