Determines the best map view (MapView object) that completely includes all of the LatLong objects in the specified array, and updates the current map view with the new map view.
MapControl.SetBestMapView(llArray);
Parameters
- llArray
- An array of LatLong objects.
Remarks
The SetBestMapView method enables you to quickly generate a map that includes all of the points you specify. To use this method, build an array of LatLong objects. The following code shows how to generate the best map view of three points.
Example
var l1 = new Msn.VE.LatLong(43,-71);
var l2 = new Msn.VE.LatLong(43,-70);
var l3 = new Msn.VE.LatLong(44,-80);
var llArray = new Array();
llArray.push(l1);
llArray.push(l2);
llArray.push(l3);
map.SetBestMapView(llArray);