Click or drag to resize

MapViewSetViewpointGeometryAsync Method (Geometry)

Zooms to the provided 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
)

Parameters

boundingGeometry
Type: Esri.ArcGISRuntime.GeometryGeometry
The geometry to zoom to.

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