Select to view content in your preferred language

How to make "Zoom to scale " similar to ArcMap

2056
1
Jump to solution
09-13-2012 03:55 AM
tanyabisen
Emerging Contributor
Hello All,

I am using Silverlight 5.0 and trying to add ZoomtoScale tool based on userinput in Silverlight Viewer  for ArcGIS.

I used this.MapControl.ZoomToResolution(textinput.text) but its not working and my projection system is in meters. How can i get this working. I have already refered to old threads related to similar query.

http://forums.esri.com/Thread.asp?c=213&f=2455&t=285205

Thanks,

Tanya Bisen
0 Kudos
1 Solution

Accepted Solutions
KatherineDalton
Esri Regular Contributor
Hi Tanya,

In the ArcGIS Viewer for Silverlight you'll want to use MapApplication.Current.Map (from the Esri.ArcGIS.Client.Extensibility assembly) instead of a MapControl. Depending on how you are implementing your tool, you may wish to take a look at the Go To Coordinates sample we just released.

Hope that helps,

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™

View solution in original post

0 Kudos
1 Reply
KatherineDalton
Esri Regular Contributor
Hi Tanya,

In the ArcGIS Viewer for Silverlight you'll want to use MapApplication.Current.Map (from the Esri.ArcGIS.Client.Extensibility assembly) instead of a MapControl. Depending on how you are implementing your tool, you may wish to take a look at the Go To Coordinates sample we just released.

Hope that helps,

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos