maplibre / flutter-maplibre-gl

Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
https://pub.dev/packages/maplibre_gl
Other
186 stars 106 forks source link

fix: add tracking mode conversion in onCameraTrackingChanged #376

Closed XanderD99 closed 4 months ago

XanderD99 commented 5 months ago

fix for #375

just a fast fix to map the mode to the flutter enum values.

m0nac0 commented 4 months ago

Thanks for contributing, and sorry you had to wait for feedback on this! Do you know if iOS works fine? Looking at the docs at https://maplibre.org/maplibre-native/ios/api/Enums/MGLUserTrackingMode.html#/MGLUserTrackingMode it seems that the iOS and Flutter constant values for the enums should be the same, but it would be good to know should you have already testet it (no worries if you don't know).

XanderD99 commented 4 months ago

Yeah iOS seems to be working fine they use basically the same types like the flutter package. Android does like you said use different types and enum values