Show / Hide Table of Contents

Method SetViewpointCenterAsync

SetViewpointCenterAsync(MapPoint)

Centers the map view at the provided center point.

Declaration
public Task<bool> SetViewpointCenterAsync(MapPoint center)
Parameters
Type Name Description
MapPoint center

The location at which to center the map view.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.7
.NET Framework100.0 - 200.7

SetViewpointCenterAsync(Double, Double)

Centers the view on the provided point.

Declaration
public Task<bool> SetViewpointCenterAsync(double latitude, double longitude)
Parameters
Type Name Description
System.Double latitude

Latitude in a WGS84 geographic coordinate system

System.Double longitude

Longitude in a WGS84 geographic coordinate system

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.7
.NET Framework100.0 - 200.7

SetViewpointCenterAsync(MapPoint, Double)

Centers the map view at the provided center point and zooms to the given scale.

Declaration
public Task<bool> SetViewpointCenterAsync(MapPoint center, double scale)
Parameters
Type Name Description
MapPoint center

The location at which to center the map view.

System.Double scale

The scale at which the map is displayed.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.7
.NET Framework100.0 - 200.7

SetViewpointCenterAsync(Double, Double, Double)

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

Declaration
public Task<bool> SetViewpointCenterAsync(double latitude, double longitude, double scale)
Parameters
Type Name Description
System.Double latitude

Latitude in a WGS84 geographic coordinate system

System.Double longitude

Longitude in a WGS84 geographic coordinate system

System.Double scale

The reference scale to zoom to

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.7
.NET Framework100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.