Method SetViewpointGeometryAsync
SetViewpointGeometryAsync(Geometry)
Zooms and pans the map view to the extent of the provided geometry.
Declaration
public Task<bool> SetViewpointGeometryAsync(Geometry boundingGeometry)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | boundingGeometry | The geometry to zoom to. |
Returns
| Type | Description |
|---|---|
| Task<bool> |
|
Remarks
If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, double).
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET iOS | 200.0 - 300.0 |
| Xamarin.iOS | 100.0 - 100.15 |
SetViewpointGeometryAsync(Geometry, double)
Zooms and pans the map view to the extent of the provided geometry with additional padding.
Declaration
public Task<bool> SetViewpointGeometryAsync(Geometry boundingGeometry, double padding)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | boundingGeometry | The geometry to zoom to. |
| double | padding | The minimum amount of padding around the bounding geometry in pixels. |
Returns
| Type | Description |
|---|---|
| Task<bool> |
|
Remarks
If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, double).
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET iOS | 200.0 - 300.0 |
| Xamarin.iOS | 100.0 - 100.15 |