setViewpointGeometry

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

Animate the map view to the bounding geometry with padding applied.

Return

a Result indicating whether the viewpoint was successfully set. A success result with a value of false may indicate the operation was cancelled.

Since

200.4.0

Parameters

boundingGeometry

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

paddingInDips

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