toCameraOptions

fun CameraState.toCameraOptions(anchor: ScreenCoordinate? = null): CameraOptions

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.