Method SetViewpointCenterAsync
| Edit this page View SourceSetViewpointCenterAsync(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> |
|
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> |
|
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> |
|
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> |
|