Click or drag to resize

MapCtrlZoomToBoundingBox Method (BoundingBox, Int32)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Zooms the map and centers on the given BoundingBox.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public void ZoomToBoundingBox(
	BoundingBox abox,
	int buffer_pixels
)

Parameters

abox
Type: Telogis.GeoBaseBoundingBox
The BoundingBox to be centered and zoomed to.
buffer_pixels
Type: SystemInt32
The number of pixels between the edge of abox and the edge of the visible map area. See remarks.

Implements

IMapZoomToBoundingBox(BoundingBox, Int32)
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when the buffer is negative, or greater than half the map width.
Remarks
See ZoomToBoundingBox(BoundingBox, Int32) for further discussion of this method.
Examples
C#
BoundingBox theBox = new BoundingBox(new LatLon(34, -118));
mapMain.ZoomToBoundingBox(theBox, 10);
mapMain.Invalidate();
See Also