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> |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Android | 200.0 - 200.5 |
Xamarin.Android | 100.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 |
---|---|---|
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> |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Android | 200.0 - 200.5 |
Xamarin.Android | 100.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. |
System.Double | scale | The scale at which the map is displayed. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Android | 200.0 - 200.5 |
Xamarin.Android | 100.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 |
---|---|---|
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> |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Android | 200.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |