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<Boolean> |
|
Remarks
If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, Double).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET 6.0 Windows | 100.13 - 200.2 |
.NET Framework | 100.0 - 200.2 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
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<Boolean> |
|
Remarks
If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, Double).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET 6.0 Windows | 100.13 - 200.2 |
.NET Framework | 100.0 - 200.2 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |