Map Scale units?

538
0
12-16-2013 10:00 AM
DanielMauer
New Contributor II
Hello,

So: I've got a Flex map which is being controlled by an external interface in Javascript, using a function which provides a centerpoint lat/lon, a map rotation (in degrees), and a zoomScale.

The rotation and center point are working swimmingly.

However, I can't seem to figure out what units I'm dealing with when it comes to setting myMap.scale = ???.

What I'm starting with is a distance in meters, and I'd like to ensure that from the center point, a distance of at least that many meters from the center point is viewable on the map in any direction.

What sort of conversion do I need to do, so given m = distanceInMetersFromCenterPoint, the function getBestMapScale(m):Number will return the value I should set myMap.scale to?

Thanks!
Tags (2)
0 Kudos
0 Replies