New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Mapbox Maps 10.0.0-beta.20
, Navigation Native 50.0.0
and Common 12.0.0
.
#3010
Update to Mapbox Maps 10.0.0-beta.20
, Navigation Native 50.0.0
and Common 12.0.0
.
#3010
Conversation
2fc4328
to
d0bb78f
Compare
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.
Looks pretty reasonable to me. Just a question about control flow in one of the updated methods. (Remember to update to v2.0.0-beta.20 once it’s out.)
var layerPosition: MapboxMaps.LayerPosition? = nil | ||
|
||
if isMainRoute { | ||
if let aboveLayerIdentifier = mapView.mainRouteLineParentLayerIdentifier { |
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.
If the identifier is nil, this method silently returns without adding a layer or printing to the console. Is that intentional? It’d be easier to keep track of cases like this by making layerPosition
constant (but still optional).
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.
I've updated the code to use let
instead of var
. Otherwise code should work fine: if there is no layerPosition
layer will be added at the top of the stack.
b1315b2
to
b259fbe
Compare
main
.10.0.0-beta.20
, Navigation Native 50.0.0
and Common 12.0.0
.
@@ -72,22 +72,13 @@ class Navigator { | |||
Restrict direct initializer access. | |||
*/ | |||
private init() { |
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.
8c0ebc7
to
f20b0be
Compare
856fae6
to
3fe773a
Compare
…on of Mapbox Maps from `main`.
… Maps from `main`.
…ner` and brining back ``.
3fe773a
to
684a23e
Compare
Description
PR updates Mapbox Maps to
10.0.0-beta.20
(pointing tomain
for now), Navigation Native50.0.0
and Common12.0.0
.