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
Task<bool>

True if the viewpoint has been successfully set. Otherwise, false.

Applies to

Platforms and versions
TargetVersions
.NET iOS200.0 - 300.0
Xamarin.iOS100.0 - 100.15

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<bool>

True if the viewpoint has been successfully set. Otherwise, false.

Applies to

Platforms and versions
TargetVersions
.NET iOS200.0 - 300.0
Xamarin.iOS100.0 - 100.15

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.

double scale

The scale at which the map is displayed.

Returns
Type Description
Task<bool>

True if the viewpoint has been successfully set. Otherwise, false.

Applies to

Platforms and versions
TargetVersions
.NET iOS200.0 - 300.0
Xamarin.iOS100.0 - 100.15

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<bool>

True if the viewpoint has been successfully set. Otherwise, false.

Applies to

Platforms and versions
TargetVersions
.NET iOS200.0 - 300.0
Xamarin.iOS100.0 - 100.15
In this article
Provide feedback
Back to top Copyright © 2025 Esri.