Zoom map on fixed scale

10/10/2013 9:12:31 AM
Total Posts 1

Zoom map on fixed scale

I Want to zoom map on 65.5 feet.
I have already tried for MAP Scale property.
give me syntax and code for zoom map on 65.5 feet.

10/10/2013 10:45:05 AM
MVP
Total Posts 323

Re: Zoom map on fixed scale

Try to use the CalculateScale method:

map.MapScale = Map.CalculateScale(65.5, MeasureUnit.Feet, map.Width.Value)

The map.Width property should be set in pixels, or specifty a desired value.