Method SetViewpointGeometryAsync
SetViewpointGeometryAsync(Geometry)
Zooms to 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<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 - 100.15 |
SetViewpointGeometryAsync(Geometry, Double)
Zooms to the provided geometry and leaves some padding around the geometry.
Declaration
public Task<bool> SetViewpointGeometryAsync(Geometry boundingGeometry, double padding)
Parameters
Type | Name | Description |
---|---|---|
Geometry | boundingGeometry | The geometry to zoom to. |
Double | padding | Minimum amount of padding around the bounding geometry in pixels. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.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 - 100.15 |