Show / Hide Table of Contents

Method SetViewpointCenterAsync

| Edit this page View Source

SetViewpointCenterAsync(MapPoint)

Centers the map view at the provided center point.

Declaration
public virtual 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 set view animation completed, false if it was interrupted by another view navigation.

| Edit this page View Source

SetViewpointCenterAsync(double, double)

Centers the view on the provided point.

Declaration
public virtual Task<bool> SetViewpointCenterAsync(double x, double y)
Parameters
Type Name Description
double x
double y
Returns
Type Description
Task<bool>

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

| Edit this page View Source

SetViewpointCenterAsync(MapPoint, double)

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

Declaration
public virtual 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 set view animation completed, false if it was interrupted by another view navigation.

| Edit this page View Source

SetViewpointCenterAsync(double, double, double)

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

Declaration
public virtual 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 set view animation completed, false if it was interrupted by another view navigation.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX