Hi all! Meet KMP Maps – a universal map component...
# feed
m
Hi all! Meet KMP Maps – a universal map component for Compose Multiplatform 🌍 Cross-platform API that works on both Android & iOS Native performance powered by Google Maps on Android & Apple MapKit on iOS 🎨 Support for markers, circles, polygons and custom map styling 🙌 Interactive callbacks handling clicks, gestures and camera movements 📍 Built-in location permission handling and user location display https://github.com/software-mansion/kmp-maps
🎉 10
💯 4
K 2
K 9
🔥 1
s
When Desktop? 😄
m
We can make it pretty quicklish if there will be demand I think 🙂 https://github.com/software-mansion/kmp-maps/issues/36
s
What would this be based on? I recall Sebastian Aigner did a CMP maps demo at KotlinConf that used OpenStreetMap for JVM.
k
Software mansion doing kmp? Nice one 🫡
blob wink 1
🎉 1
f
Amazing! Thanks a lot for this. Looking forward for KMP more libraries from software mansion! 😯 I was wondering if there's any plan to implement geoJson support (I know it might be a largue request) Also, I was wondering if there might be a way to maybe bring our own maps provider trough an interface or something i.e. Mapbox, but there might be more 🤷
m
What would this be based on?
@Stefan Oltmann we haven't thought thoroughly about this yet. On macOS I'd love to use MapKit but in other platforms - yeah OSM would be probably the best bet
👍 1
I was wondering if there's any plan to implement geoJson support (I know it might be a largue request)
@Fernando you mean passing GeoJSON data as Map component arguments? Created an issue: https://github.com/software-mansion/kmp-maps/issues/39
> Also, I was wondering if there might be a way to maybe bring our own maps provider trough an interface or something i.e. Mapbox, but there might be more 🤷 @Fernando If you want to use Mapbox then it would be much easier for you to just integrate their native SDKs into the app directly. There's no added value of our library on top of such use case
a
I was wondering if there's any plan to implement geoJson support (I know it might be a largue request)
@Fernando I'm wondering which functionality would be most important for you. Are you looking to export your map annotations and state to GeoJSON format, or would you prefer to import GeoJSON data to display on the map? Or maybe both, with one being more important than the other? Let me know what you think.
f
Hello @Artur Gęsiarz / @Marek Kaput apologies for the late reply. I was more interested in displaying GeoJSON content in the maps, so, allow the map to display and update GeoJSON data on the map. I created a small article of how to display and update GeoJSON content using the Mapbox compose library, which I had to tinker around a bit and it would be great if your SDK could automatically abstract all of that. I was also able to use display GeoJSON content using Apple Maps, but it was a bit broken and haven’t got the time to fix it yet.