toCameraPosition

fun toCameraPosition(): CameraPosition

Converts to a MapLibre camera.

Unlike iOS — where MLNMapCamera stores an altitude, so the conversion needs the viewport size and is degenerate before the first layout pass — MapLibre Android stores the zoom directly, so this needs nothing from the view.