setViewpointGeometry

suspend fun setViewpointGeometry(boundingGeometry: Geometry): Result<Boolean>

Change the map view to the bounding geometry asynchronously.

Return

A Result returning a bool used to indicate if the operation completed successfully or not

Since

200.0.0

Parameters

boundingGeometry

the geometry to zoom to. If the SpatialReference of the geometry is different to that of the MapView, it will be reprojected appropriately


suspend fun setViewpointGeometry(boundingGeometry: Geometry, paddingInDips: Double): Result<Boolean>

Change the map view to the bounding geometry with padding asynchronously.

Return

A Result returning a bool used to indicate if the operation completed successfully or not

Since

200.0.0

Parameters

boundingGeometry

the geometry to zoom to. If the SpatialReference of the geometry is different to that of the MapView, it will be reprojected appropriately

paddingInDips

a distance around the geometry to include in the Viewpoint when zooming, in density-independent pixels