[ios] fix removal of heading view when changing user tracking modes

This commit is contained in:
Murray Hughes
2015-10-17 13:35:05 +02:00
committed by Jason Wray
parent f8c75c6e22
commit f6e3ee4b25

View File

@@ -266,6 +266,8 @@ const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuck
}
else
{
[_headingIndicatorLayer removeFromSuperlayer];
[_headingIndicatorMaskLayer removeFromSuperlayer];
_headingIndicatorLayer = nil;
_headingIndicatorMaskLayer = nil;
}