Show a map
MapEngine holds what the map shows, on every target. On Android, MapView draws it in Compose over MapLibre Native.
Call it from a LaunchedEffect. A later call replaces the itinerary.
onClick hands you each click and the marker it fell on. onCameraChange hands you the camera each time it comes to rest:
Kotlin names a tap on the map a click: onClick, MapEvent.Click.
A key without the tiles scope, or an agreement that does not cover the map, refuses the map's own requests. The engine says so:
map.state.value.isAccessRequired stays true while a refusal stands, so a notice you raise on it comes down by itself.
A long press opens the readout: what the map draws there, the terrain's altitude, slope and aspect, and the coordinates. Turn it off with readout = false:
The map shows the Mountaya watermark in its top-left corner unless your organization holds white label, and lists its credits, Mountaya first. Keep your own views clear of the watermark's frame:
An edit places a waypoint at each click, on the line where the click falls within 40 dp of an active segment. Move one of the Tour du Mont-Blanc's waypoints:
MapView places the waypoint at each click while the edit runs.