Select to view content in your preferred language

How to get the mapscale using ArcGIS API for WPF

2278
2
07-04-2010 12:01 AM
SolidSmoke
New Contributor
Please advise me how to get the mapscale of the Map using ArcGIS API for WPF. Or how to get the same from the ScaleBar control of ArcGIS API for WPF. This is very urgent.
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
Map.Resolution is giving the map resolution on map units per pixels.

From this resolution you can calculate the scale.
For example, if your map units are feet and your device is 96 dpi,  the map scale is map.Resolution(feet/pixel) * 12(in/foot) * 96(pixel/in).
0 Kudos
dotMorten_esri
Esri Notable Contributor
See the scale discussion in the class reference for the Map class:
http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/apiref/topic380.html
0 Kudos