Zooming to a list of points

Feb 10, 2010 at 12:00 PM

Is there a way to get the camera position required to fit an array of points on screen.

There is functionality in the VE API to SetMapView which takes an array of points and will then change the camera position to meet the bounding box of those points?

I would like to mimic that functionality if possible.



Feb 22, 2010 at 10:35 PM

I'm sorry, I don't think there is a method to do this in the managed API.

If you wanted to make a method to do this yourself, you would first need to find the bounding box of the latitudes and longitudes, then convert that into a viewpoint. There's some 3-D geometry involved.

Sorry I couldn't help you more on this.