maplibre/flutter-maplibre-gl

Customize the Compass?

Opened this issue · 3 comments

How to we style or customize the Compass style?

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:

  • setting whether the compass is shown always or only when not facing north
  • setting a custom compass image (but I've only found this for Android, not iOS)

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

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.