to Camera Options
fun CameraState.toCameraOptions(anchor: ScreenCoordinate? = null): CameraOptions
Content copied to clipboard
Extension function to convert CameraState to CameraOptions.
If anchor is specified - CameraOptions.center will be explicitly set to NULL in order for the anchor to apply to the map camera.