toCameraOptions

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.

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