From f6e3ee4b25eb4472d8d7b9408326c62532925cc1 Mon Sep 17 00:00:00 2001 From: Murray Hughes Date: Sat, 17 Oct 2015 13:35:05 +0200 Subject: [PATCH] [ios] fix removal of heading view when changing user tracking modes --- platform/ios/MGLUserLocationAnnotationView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/ios/MGLUserLocationAnnotationView.m b/platform/ios/MGLUserLocationAnnotationView.m index 103ec8860..cc4f58804 100644 --- a/platform/ios/MGLUserLocationAnnotationView.m +++ b/platform/ios/MGLUserLocationAnnotationView.m @@ -266,6 +266,8 @@ const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuck } else { + [_headingIndicatorLayer removeFromSuperlayer]; + [_headingIndicatorMaskLayer removeFromSuperlayer]; _headingIndicatorLayer = nil; _headingIndicatorMaskLayer = nil; }