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

ScaleControl unit space consistency (nautical-mile) #12876

Closed
chboing opened this issue Aug 31, 2023 · 2 comments
Closed

ScaleControl unit space consistency (nautical-mile) #12876

chboing opened this issue Aug 31, 2023 · 2 comments

Comments

@chboing
Copy link

chboing commented Aug 31, 2023

I instanciated a Map, created 2 ScaleControl one nautical and one metric

The result is this :
image

There is a space in front of the nm only,
This is coming from https://github.com/mapbox/mapbox-gl-js/blob/main/src/ui/control/scale_control.js where there is a special case for nautical-mile setting in the method _setScale
I like this space, and I would love to have spaces between numbers and unit consistently !
Having the choice if "space or not" would be even better.

Cheers

@mourner
Copy link
Member

mourner commented Aug 31, 2023

This was recently fixed in #12644, and the fix included in v2.15. Can you check to make sure you're using the latest stable version?

@mourner mourner closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
@chboing
Copy link
Author

chboing commented Sep 1, 2023

oups, sorry my bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants