Select to view content in your preferred language

map zoom issue

626
3
11-30-2010 07:20 AM
SangamLama
New Contributor
Hi there,

I've been trying to zoom the map with focus to a particular geometry, but it doesn't seem to work.

I used MyMap.ZoomTo(point) wherepoint is a MapPoint.

Do I need to add the zoomlevel by doingsomething like MyMap.Zoom(2)? If so, any number I pass here gives me a value out of range error.

Any help?
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
SangamLama
New Contributor
Kindly see this related thread: http://forums.arcgis.com/threads/13749-how-to-Zoom-to-point


Hi Jennifer,
thank you for the right direction.

I however have a problem. my map's resolution does not have a value. Why do you think that is happening? I looked for the value of MyMap.Resolution and it returns NaN...
0 Kudos
JenniferNery
Esri Regular Contributor
Map.Resolution is doubleNaN when there are no layers or Extent is not set or ActualWidth is 0.
0 Kudos