camera For Coordinates
suspend fun cameraForCoordinates(coordinates: List<Point>, camera: CameraOptions = cameraOptions { }, coordinatesPadding: EdgeInsets? = null, maxZoom: Double? = null, offset: ScreenCoordinate? = null): CameraOptions
Convenience method that returns the CameraOptions object for given parameters.
Return
The CameraOptions object representing the provided parameters.
Parameters
coordinates
The coordinates
representing the bounds of the camera.
camera
The CameraOptions which will be applied before calculating the camera for the coordinates. If any of the fields in CameraOptions are not provided then the current value from the map for that field will be used.
coordinates Padding
The amount of padding in pixels to add to the given coordinates
. Note: This padding is not applied to the map but to the coordinates provided. If you want to apply padding to the map use param camera
.
max Zoom
The maximum zoom level allowed in the returned camera options.
offset
The center of the given bounds relative to map center in pixels.