From 4cff2bad85ceecec3fd1db3d8ea9c2ede020279f Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 25 Mar 2015 18:16:39 -0700 Subject: [PATCH] deselect user dot during location moves (for now) --- platform/ios/MGLMapView.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index caaa4574e..54bcbec79 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -2141,6 +2141,9 @@ CLLocationCoordinate2D latLngToCoordinate(mbgl::LatLng latLng) { self.userLocation.location = newLocation; + // deselect user if applicable since we don't do callout tracking yet + if ([self.selectedAnnotation isEqual:self.userLocation]) [self deselectAnnotation:self.userLocation animated:NO]; + if ([self.delegate respondsToSelector:@selector(mapView:didUpdateUserLocation:)]) { [self.delegate mapView:self didUpdateUserLocation:self.userLocation];