Replies: 3 comments 5 replies
-
I implemented location using Compass library and it was pretty straightforward. I can share code snippets for how I displayed it if you are interested |
Beta Was this translation helpful? Give feedback.
-
Some more context here: #27 I'd love to have a shared location component for this library, ideally as a separate, optional, module. But since it's not that hard to do on the library's public API already, it's not a priority for me to develop myself. Exposing the location component already included in the iOS/Android MapLibre SDK is an alternative approach, but there's no such component available on other platforms, and with #218 we'd lose that code on Android/iOS too. So IMO the best approach is to build a new, multiplatform, location component. |
Beta Was this translation helpful? Give feedback.
-
Something that got brought up in #402: the Compass library uses Google Play Services to get location. Ideally, we should aim to be compatible with Android devices without Google services available (anything in China, GrapheneOS, Amazon Fire, specialized devices like Boox and Meta Quest, etc) so, in our geolocation module, would need to either:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First, I want to express my gratitude to all the maintainers - your work on MapLibre for Compose Multiplatform is truly impressive and greatly appreciated!
I've been thinking about location handling across platforms while using the library. I understand you're juggling many priorities right now and have a roadmap of your own, but I'd love to start a conversation about a potential shared location component.
Having worked with MapLibre on Android, I've seen the challenges with location implementation, and I imagine it becomes even more complex when considering iOS, Desktop, and Web platforms - each with their own permission models and location APIs. Then there's the question of fused location providers and various accuracy levels that different use cases might require.
I'm wondering if others in the community have been thinking about this too? Perhaps a simple approach could be allowing a location component to be passed in the MapLibreMap constructor?
What are your thoughts on this? Is this something on your radar, or are there technical challenges I'm not considering?
Beta Was this translation helpful? Give feedback.
All reactions