Click or drag to resize

MapViewSetViewpointCenterAsync Method (MapPoint, Double)

Centers the view on the provided point and zooms to the provided scale.

Namespace:  Esri.ArcGISRuntime.UI.Controls
Assembly:  Esri.ArcGISRuntime.WPF (in Esri.ArcGISRuntime.WPF.dll) Version: 100.11.0
Syntax
public Task<bool> SetViewpointCenterAsync(
	MapPoint center,
	double scale
)

Parameters

center
Type: Esri.ArcGISRuntime.GeometryMapPoint
Point to center the view on.
scale
Type: SystemDouble
The reference scale to zoom to

Return Value

Type: TaskBoolean
True if the set view animation completed, false if it was interrupted by another view navigation.
See Also