VE Standard Map Control SDK, version 2.0
MapControl.SetViewport Method
MapControl.SetViewport Method

Determines the best map view (MapView object) that completely includes the area within the specified LatLongRectangle, and updates the current map view with the new map view.

MapControl.SetViewport(lat1, lon1, lat2, lon2);

Parameters

lat1
The latitude of the northwest corner of the LatLongRectangle.
lon1
The longitude of the northwest corner of the LatLongRectangle.
lat2
The latitude of the southeast corner of the LatLongRectangle.
lon2
The longitude of the southeast corner of the LatLongRectangle.

Page view tracker