summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-08-19 15:52:55 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-08-19 15:52:55 -0700
commite1ba6a72e30c91edbf4eb9769fccac11745e2523 (patch)
treed50169eb635c17a8c3b2d501f24273c843009d39
parentfffa9930aa7a28ecbcb28fb68c096409429f72e0 (diff)
downloadqtlocation-mapboxgl-upstream/jmkiley-scalebar-0mm.tar.gz
-rw-r--r--platform/ios/src/MGLScaleBar.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/src/MGLScaleBar.mm b/platform/ios/src/MGLScaleBar.mm
index 399f1b057a..993852d8b9 100644
--- a/platform/ios/src/MGLScaleBar.mm
+++ b/platform/ios/src/MGLScaleBar.mm
@@ -187,10 +187,12 @@ static const CGFloat MGLFeetPerMeter = 3.28084;
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
+
- (void)resetLabelImageCache {
self.labelImageCache = [[NSMutableDictionary alloc] init];
-
+ [self addZeroLabel];
}
+
#pragma mark - Dimensions
- (CGSize)intrinsicContentSize {