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 |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
|
Remarks
If the bounding geometry is a point, the map will only pan. If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, Double).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
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. |
System.Double | padding | The minimum amount of padding around the bounding geometry in pixels. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
|
Remarks
If the bounding geometry is a point, the map will only pan. If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, Double).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |