MTCustomAnnotationView
Compose-based custom annotation view that can be overlaid on top of MTMapView.
Usage: Place this composable in the same Box
(overlay) as your MTMapView
so it can position itself using absolute pixel offsets.
Example:
Box(Modifier.fillMaxSize()) { MTMapView(referenceStyle, options, controller, Modifier.fillMaxSize()) MTCustomAnnotationView(controller, LngLat(16.6, 49.2)) { YourComposable() } }
Parameters
The map controller used to project coordinates and observe events.
Geographic location of this annotation.
Pixel offset from the projected point (x to the right, y down).
Which point of the content should align with the projected point.
Additional modifiers applied to the positioned Box that wraps content.
The composable content to render as the custom annotation.