Click or drag to resize

IMapZoomToBoundingBox 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
void ZoomToBoundingBox(
	BoundingBox abox,
	int buffer
)

Parameters

abox
Type: Telogis.GeoBaseBoundingBox
The BoundingBox on which to center and zoom.
buffer
Type: SystemInt32
The number of pixels between the edge of abox and the edge of the visible map area. See remarks.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when the buffer is negative, or greater than half the map width.
Remarks
Use to zoom the map to display the area of the given BoundingBox.
Use the buffer parameter to set the number of pixels by which abox is inside the resulting visible map area. For example, setting buffer to 10 results in a map where the edges of abox are 10 pixels in from the edge of the map.
See Also