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

Customize the Compass? #385

Open Uranbold opened 4 months ago

Uranbold commented 4 months ago

How to we style or customize the Compass style?

m0nac0 commented 4 months ago

Hi, what would you like to style about the compass? You should be able to set its position and margins.

The only additional options I've found in the native MapLibre libraries we are using, and that we do not currently expose in this plugin, are:

Uranbold commented 4 months ago

I've been trying to change the Default Black compass image to our own like Yandex.ru

m0nac0 commented 3 months ago

Ah, as far as I can tell that would be possible only on Android, but the iOS MapLibre SDK does not seem to support this. You could try opening an issue in https://github.com/maplibre/maplibre-native for that, and if they add support for custom compass images on iOS (or there is some way to do this that I missed) we can expose it here as well.