Repository navigation
Replies: 1 comment
Quite closely; our api surface is pretty much on par with MapLibre Native's core now, and has grown beyond the MapLibre Native Android/iOS libraries in feature set.
the FFI actually vendors native patches now, so runs ahead of upstream at the moment. See https://github.com/maplibre/maplibre-native-ffi/tree/main/patches/maplibre-native. All of these are currently PRs to maplibre-native but included (or about to be included) in the FFI and Compose. Mostly bug fixes, but occasionally a feature. Over time, I expect this to settle. The C API will eventually upstream to the maplibre-native repo, the FFI language bindings will be codegenned deterministically from the C headers and some associated metadata.
The big ones are:
Otherwise, previously lots of compromises were made in the API surface due to the differences and limitations in SDK layers, and the last few releases have been revising every aspect of the api around the new architecture. Recently done for map state and styling, gestures, location providers, now working on camera commands and the location indicator. I expect before a stable 1.0 I'll be reassessing every bit of the api surface to determine if it still makes sense or could be made more coherent. For the FFI, there's a revision to the execution model that moves some complexity out of integrations and bindings into the core, and support for browsers in MapLibre Native so the remaining platform-specific quirks (MapLibre GL JS vs Native) can be resolved here in MapLibre Compose. This is mostly internal work. |
Uh oh!
There was an error while loading. Please reload this page.
I've been watching this repo since I was looking for a map library for my thesis, about two years ago. I wanted something that actually felt like Compose and not a platform view with a Compose shell around it, and at the time maplibre-compose was the closest thing to that, even if the wrapper approach had obvious limits. #218 was the issue I kept coming back to, because it was clear that was where the real fix lived. I'll admit I had half a plan to attempt the AWT prototype myself if it stayed stuck. Glad it didn't come to that — you'd have waited a long time for my version.
The thing I find worth saying is that the project went quiet more than once, and when it came back the answer wasn't another layer of patches on the old approach. Spatial K, then the FFI bindings, then rebuilding on top of them. That's the slow order to do things in and the easy one to walk away from, especially on something maintained in spare time. Getting all four targets onto one implementation and one public API, and then iterating on it twice since, is a real result. Congratulations.
What I'm mostly looking forward to is that changes should now land consistently everywhere instead of per platform. Which makes me curious about day two: how closely do you expect the library to track MapLibre Native from here — does the FFI layer follow upstream on some cadence, and is there planned work that's waiting on upstream to land first? Also curious @sargunv, what's next on your list?
All reactions