How to set a marker for a Latitude and Longitude? #276
Replies: 3 comments
-
More of a general maplibre question. I'd recommend to read a maplibre tutorial first. You add point features to the source. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tried this, as per the demo apps: private val CHICAGO = Position(latitude = 41.878, longitude = -87.626)
val source = rememberGeoJsonSource("target", Point(CHICAGO)) But it throws an exception: FATAL EXCEPTION: main
Process: com.hristogochev.maps, PID: 17452
java.lang.IllegalStateException
at dev.sargunv.maplibrecompose.compose.engine.RememberStyleCompositionKt.LocalStyleNode$lambda$2(rememberStyleComposition.kt:47)
at dev.sargunv.maplibrecompose.compose.engine.RememberStyleCompositionKt.$r8$lambda$C8OPTyTfa3BQk2EGF2g3ru_rf6s(Unknown Source:0)
at dev.sargunv.maplibrecompose.compose.engine.RememberStyleCompositionKt$$ExternalSyntheticLambda0.invoke(D8$$SyntheticClass:0)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:83) |
Beta Was this translation helpful? Give feedback.
0 replies
-
It turned out |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for this library! Saves a lot of time!
I'm trying to set a marker somewhere on the map for a given latitude and a longitude but I'm unable to find information on how to do so.
From what I understand I must use SymbolLayer, but that requires a Source, not a Position.
Beta Was this translation helpful? Give feedback.
All reactions