summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2017-04-16 17:24:17 +0200
committerGitHub <noreply@github.com>2017-04-16 17:24:17 +0200
commit8eb23cbac8a6c5821dc5935e27689700216c3f1a (patch)
treed02fd3667c8e19daf3724384f4956f16ec0bf01c /platform/darwin
parentfcf5d1b8af5ca01f8634107f00fbc843c892dd48 (diff)
downloadqtlocation-mapboxgl-8eb23cbac8a6c5821dc5935e27689700216c3f1a.tar.gz
[ios] Scale bar (#7631)
* [ios] added a scale bar * [ios] update design * [ios] show/hide scale bar * [ios] Remove the need to localize 0 * [ios] Support for imperial units * [ios] Round to nearest foot * [ios] Make scale bar private * [ios] Update design and clean up * [ios] Rename and various optimizations * [ios] RTL support * [ios] added max scale and removed animations * [ios] animate scale bar
Diffstat (limited to 'platform/darwin')
-rw-r--r--platform/darwin/src/MGLDistanceFormatter.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLDistanceFormatter.m b/platform/darwin/src/MGLDistanceFormatter.m
index e77e48b512..a7a2f9c9e1 100644
--- a/platform/darwin/src/MGLDistanceFormatter.m
+++ b/platform/darwin/src/MGLDistanceFormatter.m
@@ -24,7 +24,7 @@ static const double FEET_PER_MILE = YARDS_PER_MILE * 3.0;
return [self stringFromValue:miles unit:unit];
} else {
unit = NSLengthFormatterUnitFoot;
- self.numberFormatter.roundingIncrement = @50;
+ self.numberFormatter.roundingIncrement = @1;
return [self stringFromValue:feet unit:unit];
}
} else {