diff options
-rw-r--r-- | platform/ios/src/MGLScaleBar.mm | 4 |
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 { |