mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

[Feature Request] Expose interface to use in Dart natively #16506

Open despondency opened 4 years ago

despondency commented 4 years ago

Hello, this feature request is inspired by tobrun whose efforts are going towards the flutter mapbox gl plugin, however he made an issue there https://github.com/tobrun/flutter-mapbox-gl/issues/140 regarding exposing the native functionality interface and using dart:ffi directly jumping straight from Dart to C++ rather than Dart -> Android/IOS -> C++.

Are there any plans for this interface to be exposed, it would be of huge use for many people that want to go to the Dart/Flutter way, which is certainly amazing!

Much thanks!

zugaldia commented 4 years ago

/cc: @tobrun

leecommamichael commented 3 years ago

Dart's C FFI is getting pretty mature, I wonder if there's an opportunity here? https://dart.dev/guides/libraries/c-interop

I suppose my meaning for posting is really bringing awareness that it's mature enough for them to document how you'd do this sort of thing, so the Dart team is clearly encouraging it.

cedvdb commented 2 years ago

What is the status here ? There is also an FFI generator that can be used to create the bridge, so it could do the heavy lifting.

As far as I understand this would allow the flutter wrapper to be thinner, which would bring confidence in using a public wrapper or even our own. For the time being we are moving to google maps.