I'm attempting to develop a piece of functionality using a 3rd party map control in an application that automatically pans/zooms the map surface to the best possible view given points on map. The map should be centered and zoomed in as close as possible without cutting out any points on the map.
To determine the maps center point, I averaged all of the points on the map surface. This seems to be working fine, but there may be a better approach. The issue I'm running into is how to appropriately zoom in or out to accommodate all points on the map in the "best" possible view.
I'm not very familiar with 3D techniques, so any terminology relating to this problem will probably be new to me. I'm not necessarily looking for a specific algorithm (though I certainly wouldn't turn one down). Mostly, I would like to understand the theory behind approaching such a problem so that I can implement it.