@@ -688,6 +688,8 @@ - (void)glkView:(__unused GLKView *)view drawInRect:(__unused CGRect)rect
688
688
_mbglMap->setSourceTileCacheSize (cacheSize);
689
689
690
690
_mbglMap->renderSync ();
691
+
692
+ [self updateUserLocationAnnotationView ];
691
693
}
692
694
}
693
695
@@ -2351,8 +2353,6 @@ - (void)locationManager:(__unused CLLocationManager *)manager didUpdateToLocatio
2351
2353
2352
2354
self.userLocationAnnotationView .haloLayer .hidden = ! CLLocationCoordinate2DIsValid (self.userLocation .coordinate ) ||
2353
2355
newLocation.horizontalAccuracy > 10 ;
2354
-
2355
- [self updateUserLocationAnnotationView ];
2356
2356
}
2357
2357
2358
2358
- (BOOL )locationManagerShouldDisplayHeadingCalibration : (CLLocationManager *)manager
@@ -2509,8 +2509,6 @@ - (void)notifyMapChange:(mbgl::MapChange)change
2509
2509
case mbgl::MapChangeRegionWillChange:
2510
2510
case mbgl::MapChangeRegionWillChangeAnimated:
2511
2511
{
2512
- [self updateUserLocationAnnotationView ];
2513
-
2514
2512
[self deselectAnnotation: self .selectedAnnotation animated: NO ];
2515
2513
2516
2514
BOOL animated = (change == mbgl::MapChangeRegionWillChangeAnimated);
@@ -2545,7 +2543,6 @@ - (void)notifyMapChange:(mbgl::MapChange)change
2545
2543
}
2546
2544
case mbgl::MapChangeRegionIsChanging:
2547
2545
{
2548
- [self updateUserLocationAnnotationView ];
2549
2546
[self updateCompass ];
2550
2547
2551
2548
if ([self .delegate respondsToSelector: @selector (mapViewRegionIsChanging: )])
@@ -2557,7 +2554,6 @@ - (void)notifyMapChange:(mbgl::MapChange)change
2557
2554
case mbgl::MapChangeRegionDidChange:
2558
2555
case mbgl::MapChangeRegionDidChangeAnimated:
2559
2556
{
2560
- [self updateUserLocationAnnotationView ];
2561
2557
[self updateCompass ];
2562
2558
2563
2559
if (self.pan .state == UIGestureRecognizerStateChanged ||
0 commit comments