Select to view content in your preferred language

How to get the scale control to dynamically display scale like 1:50000?

867
4
08-17-2010 01:19 PM
weiliang
Deactivated User
Hi??

I want to add a control to show the current scale (e.g., 1:15,000) of the map. Is there any such control ready to be embedded?

Thanks,

Wei
0 Kudos
4 Replies
weiliang
Deactivated User
Can someone kindly help me to answer this?

Many thanks,

Wei
0 Kudos
egismazeika
Emerging Contributor
You can read the manual: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map.html
"Map Scale and Resolution" topic.

Then create a nice control and share it with us:)
0 Kudos
dotMorten_esri
Esri Notable Contributor
emazeika is correct. The topic linked to gives you the formula to convert to scale. Use the map's ExtentChanging event to recalculate the scale based on Map.Resolution.

Note: As hinted in the doc, its technically impossible to display the correct scale, since there's no way of knowing the size of the screen and it's pixel resolution. (in cases where you have the screen cloned on multiple screens - like with a projector connected - the scale is even different on each screen!).
0 Kudos
weiliang
Deactivated User
Many thanks, Egis and Morten. Your answers really help me a lot. So, even the scale in ArcMap desktop is inaccurate? And, since we use GCS as our web app's coordinate system, I assume that the scale in the direction of lon and lat should be different. Am I correct? Also, how can I know the accurate scale if I want to print to a paper, should I still use the same formula?

Best,

Wei
0 Kudos