-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Scalebar shows 0 mm instead of 0 #15197
Comments
Thanks for this report @racer1988. Also: @Chaoba would you mind commenting on what the behavior is on Android? cc @mapbox/maps-android |
normal behaviour is showing |
@chloekraw On Android, we show |
This is definitely a bug - it should show “0” only. |
There’s also another bug visible on the screenshot in #15197 (comment) |
I haven't had luck repro'ing the initial issue of seeing It looks like the issue in #15197 (comment) occurs when the scale bar goes from having three distance bars to two. |
@racer1988 Have you found a way to repro the initial issue consistently with v5.2.0? Are you seeing it on any specifics devices, or on all devices? @frederoni opened #15356 to track the issue you pointed out. 🙇♀ |
@jmkiley I think I found a way to reproduce it constantly! You will need a bit of my code and the following steps:
I think what makes the bug happening is the following code we use in the
|
@jmkiley As the way I handle the scale bar might impact the internals, I also would like to point out that the same code is also triggering another issue: #15045 probably due to the same method;
|
@racer1988 thanks for the detailed repro steps. I strongly suspect this is likely due to the
(A default for @jmkiley we need to do a few things:
|
Hello!
From time to time, in non-standard locales (DE-de and EN-it)
the map scale starts showing the value
0 mm
instead of the classical0
Configuration
Mapbox SDK versions: 5.1.0
iOS/macOS versions: iOS 12
The text was updated successfully, but these errors were encountered: