Skip to content
Discussion options

You must be logged in to vote

You can look at how the PointerPinButton works to overlay a Compose UI element on the map, tied to some lat/lon coordinates: https://github.com/maplibre/maplibre-compose/blob/main/lib/maplibre-compose-material3/src/commonMain/kotlin/org/maplibre/compose/material3/PointerPinButton.kt

But if you're trying to render some custom data on the map, I'd recommend adding a custom Source and Layers instead. You can check out the API reference for all the different source and layer types; an easy way to get started is rememberGeoJsonSource and CircleLayer.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DestBro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants