From e1ba6a72e30c91edbf4eb9769fccac11745e2523 Mon Sep 17 00:00:00 2001 From: jmkiley Date: Mon, 19 Aug 2019 15:52:55 -0700 Subject: [ios] addZeroLabel --- platform/ios/src/MGLScaleBar.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.1