-
Notifications
You must be signed in to change notification settings - Fork 122
Conversation
3990c46
to
a0a20e2
Compare
if (_approximateLayer && (_oldZoom != self.mapView.zoomLevel || _oldHorizontalAccuracy != self.userLocation.location.horizontalAccuracy)) | ||
{ | ||
CGFloat borderWidth = 2; | ||
if (self.mapView.zoomLevel < 7) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this zoom level value into a const in case we have to change in the future
maybe like const int maxApproximateZoomLevel = 7
<-- or w.e the correct obj-c syntax is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to mention this approximate location halo in the changelog, as a heads-up to an application or downstream SDK that may need to update its custom user location annotation view similarly.
a0a20e2
to
52fc569
Compare
[self updatePitch]; | ||
if (@available(iOS 14, *)) { | ||
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 | ||
if (self.mapView.locationManager.accuracyAuthorization == CLAccuracyAuthorizationFullAccuracy) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accuracyAuthorization
is optional and PassiveLocationManager in Navigation SDK hasn't implemented this property in 1.0 release. This leads to crashes with Nav SDK 1.0 and Maps SDK 6.2.0 on iOS 14.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introduces a new approximate location view when
MGLLocationManager.accuracyAuthorization
is set toCLAccuracyAuthorizationReducedAccuracy
.