diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-08-19 15:52:55 -0700 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-08-19 15:52:55 -0700 |
commit | e1ba6a72e30c91edbf4eb9769fccac11745e2523 (patch) | |
tree | d50169eb635c17a8c3b2d501f24273c843009d39 | |
parent | fffa9930aa7a28ecbcb28fb68c096409429f72e0 (diff) | |
download | qtlocation-mapboxgl-upstream/jmkiley-scalebar-0mm.tar.gz |
[ios] addZeroLabelupstream/jmkiley-scalebar-0mm
-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 { |