Show / Hide Table of Contents

Method SetViewpointCenterAsync

SetViewpointCenterAsync(MapPoint)

Centers the view on the provided point.

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

Point to center the view on.

Returns
Type Description
Task<Boolean>

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

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 200.0

SetViewpointCenterAsync(Double, Double)

Centers the view on the provided point.

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

Latitude in a WGS84 geographic coordinate system

Double longitude

Longitude in a WGS84 geographic coordinate system

Returns
Type Description
Task<Boolean>

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

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 200.0

SetViewpointCenterAsync(MapPoint, Double)

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

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

Point to center the view on.

Double scale

The reference scale to zoom to

Returns
Type Description
Task<Boolean>

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

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 200.0

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
Double latitude

Latitude in a WGS84 geographic coordinate system

Double longitude

Longitude in a WGS84 geographic coordinate system

Double scale

The reference scale to zoom to

Returns
Type Description
Task<Boolean>

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

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 200.0
In This Article
Back to top Copyright © 2022 Esri.