You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Remove workarounds adding content inset when setting map camera #2145
Once mapbox/mapbox-gl-native#14813 lands and we upgrade to map SDK v5.1.0, NavigationMapView.userAnchorPoint and possibly other methods need to be updated to stop adding the map view’s contentInset to the edge padding when setting the map’s camera.
In rudimentary testing, NavigationMapView.userAnchorPoint and NavigationMapView.updateCourseTracking(location:camera:animated:) seem to be behaving fine after upgrading to map SDK v5.1.0. That’s a bit of a surprising outcome, given that there was obviously a bug in the map SDK previously and it got fixed in v5.1.0.
I must not’ve been paying close enough attention, but NavigationMapView.updateCourseTracking(location:camera:animated:) is not quite correct. Upgrading from map SDK v5.0.0 to v5.1.0 causes the map to pivot around the center-bottom of the map instead of the puck’s center.
I must not’ve been paying close enough attention, but NavigationMapView.updateCourseTracking(location:camera:animated:) is not quite correct. Upgrading from map SDK v5.0.0 to v5.1.0 causes the map to pivot around the center-bottom of the map instead of the puck’s center.
Once mapbox/mapbox-gl-native#14813 lands and we upgrade to map SDK v5.1.0, NavigationMapView.userAnchorPoint and possibly other methods need to be updated to stop adding the map view’s contentInset to the edge padding when setting the map’s camera.
In my experience, the puck is detaches from the route while jumping up, although when it's down it's too low as well, so the puck sort of either being too low (which is not too bad cause I can offset that myself I think) or too high and detached.
Either way, is there any immediate workaround for puck jumping up/down? I'm using "mapbox/mapbox-navigation-ios" "v0.37.0" and "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" "5.4.0" via Cathage. We were using mapbox navagtion 0.34 with mapbox ios sdk 5.0.0, but 5.0.0 fails to compile with Swift 5.1 now (which is forced with Xcode 11.0). Having to update to 0.37, this is a critical bug which blocks any releases we can do to our app. I set my bound using:
Activity
1ec5 commentedon Jun 20, 2019
In rudimentary testing,
NavigationMapView.userAnchorPointandNavigationMapView.updateCourseTracking(location:camera:animated:)seem to be behaving fine after upgrading to map SDK v5.1.0. That’s a bit of a surprising outcome, given that there was obviously a bug in the map SDK previously and it got fixed in v5.1.0.1ec5 commentedon Jun 27, 2019
Fixed in #2134.
1ec5 commentedon Jul 17, 2019
I must not’ve been paying close enough attention, but
NavigationMapView.updateCourseTracking(location:camera:animated:)is not quite correct. Upgrading from map SDK v5.0.0 to v5.1.0 causes the map to pivot around the center-bottom of the map instead of the puck’s center.1ec5 commentedon Jul 26, 2019
Possibly related to mapbox/mapbox-gl-native#15232.
1ec5 commentedon Jul 26, 2019
This is probably mapbox/mapbox-gl-native#15233.
Simplify anchor point calculation and puck centering
astojilj commentedon Aug 14, 2019
@1ec5, @fabian-guerra
Since mapbox/mapbox-gl-native@4026451 is already in 5.1, it requires described update.
As padding is added to content inset, current anchor point calculation is out of sync with mapbox/mapbox-gl-native#14813 and effectively adds content insets twice: once in anchor point calculation and once in setCamera - defined in mapbox/mapbox-gl-native#12818. This is a cause of having the puck jumping down - working on fix for this in #2211.
Simplify anchor point calculation and puck centering
noway commentedon Sep 26, 2019
In my experience, the puck is detaches from the route while jumping up, although when it's down it's too low as well, so the puck sort of either being too low (which is not too bad cause I can offset that myself I think) or too high and detached.
Either way, is there any immediate workaround for puck jumping up/down? I'm using
"mapbox/mapbox-navigation-ios" "v0.37.0"and"https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" "5.4.0"via Cathage. We were using mapbox navagtion 0.34 with mapbox ios sdk 5.0.0, but 5.0.0 fails to compile with Swift 5.1 now (which is forced with Xcode 11.0). Having to update to 0.37, this is a critical bug which blocks any releases we can do to our app. I set my bound using:Update: workaround to this is to adopt this unmerged PR: #2211 (comment)
Simplify anchor point calculation and puck centering
1ec5 commentedon Oct 2, 2019
Once #2211 lands, #2248 will supersede the original problem tracked in this issue.