Click or drag to resize

MapViewSetViewpointGeometryAsync Method (Geometry, Double)

Zooms to the provided geometry and leaves some padding around the geometry.

Namespace:  Esri.ArcGISRuntime.UI.Controls
Assembly:  Esri.ArcGISRuntime.WPF (in Esri.ArcGISRuntime.WPF.dll) Version: 100.11.0
Syntax
public Task<bool> SetViewpointGeometryAsync(
	Geometry boundingGeometry,
	double padding
)

Parameters

boundingGeometry
Type: Esri.ArcGISRuntime.GeometryGeometry
The geometry to zoom to.
padding
Type: SystemDouble
Minimum amount of padding around the bounding geometry in pixels.

Return Value

Type: TaskBoolean
True if the zoom animation completed, false if it was interrupted by another view navigation.
Remarks
If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, Double).
See Also