Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize the Compass? #385

Open
Uranbold opened this issue Feb 29, 2024 · 3 comments
Open

Customize the Compass? #385

Uranbold opened this issue Feb 29, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Uranbold
Copy link

How to we style or customize the Compass style?

@m0nac0
Copy link
Collaborator

m0nac0 commented Mar 3, 2024

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)

@Uranbold
Copy link
Author

Uranbold commented Mar 4, 2024

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

@m0nac0
Copy link
Collaborator

m0nac0 commented Mar 13, 2024

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.

@josxha josxha added the enhancement New feature or request label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants