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 }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
CoreThe cross-platform C++ core, aka mbglbugnavigationFor the Mapbox Navigation SDK for Android or iOS or navigation use cases in generalrelease blockerBlocks the next final release
@1ec5 sorry for the delay -- I started digging into this yesterday and need to vet what I think is a subtle difference in behavior between the way an undefined pitch alignment value is handled in the style:
Just a hunch, but in gl-native, if symbolPlacement is line, it doesn’t look like it’s possible for either iconRotationAlignment or textRotationAlignment to be viewport for the purpose of a textPitchAlignment fallback, even if the stylesheet sets it explicitly, because this line will read the value that was set here rather than the raw value specified by the style. The corresponding code in GL JS only defaults text-rotation-alignment to map if it isn’t specified in the stylesheet; likewise for icon-rotation-alignment.
Indeed, falling back to a temporarily stored value of text-rotation-alignment does fix the immediate issue. Here’s what 1ec5-shields-upright-5683 looks like:
On the other hand, it isn’t quite right because the street labels are also falling back to viewport now.
Effectively, this means that text-pitch-alignment falls back to the literal value of text-rotation-alignment but not the computed value. Is this what the style specification normally means by “matching” a property?
CoreThe cross-platform C++ core, aka mbglbugnavigationFor the Mapbox Navigation SDK for Android or iOS or navigation use cases in generalrelease blockerBlocks the next final release
Activity
1ec5 commentedon Jul 14, 2016
Bisect implicates ecd4aa1 (#5288).
/cc @yhahn
yhahn commentedon Aug 30, 2016
@1ec5 sorry for the delay -- I started digging into this yesterday and need to vet what I think is a subtle difference in behavior between the way an undefined pitch alignment value is handled in the style:
mapbox-gl-native/src/mbgl/style/layers/symbol_layer_impl.cpp
Lines 39 to 47 in c075386
Will keep trying to get to the bottom of this today.
1ec5 commentedon Aug 31, 2016
Just a hunch, but in gl-native, if
symbolPlacementisline, it doesn’t look like it’s possible for eithericonRotationAlignmentortextRotationAlignmentto beviewportfor the purpose of atextPitchAlignmentfallback, even if the stylesheet sets it explicitly, because this line will read the value that was set here rather than the raw value specified by the style. The corresponding code in GL JS only defaultstext-rotation-alignmenttomapif it isn’t specified in the stylesheet; likewise foricon-rotation-alignment.[core] Fix default text pitch alignment
1ec5 commentedon Aug 31, 2016
Indeed, falling back to a temporarily stored value of
text-rotation-alignmentdoes fix the immediate issue. Here’s what 1ec5-shields-upright-5683 looks like:On the other hand, it isn’t quite right because the street labels are also falling back to
viewportnow.Effectively, this means that
text-pitch-alignmentfalls back to the literal value oftext-rotation-alignmentbut not the computed value. Is this what the style specification normally means by “matching” a property?boundsj commentedon Sep 20, 2016
I think the following summarizes what is required to land the set of PRs that fix this issue:
autoto the style spec Add an explicit enum value to the spec for text and icon pitch and rotation mapbox-gl-style-spec#493autoenum mapbox-gl-test-suite#144 @jfirebaughIn the future, the style spec should be updated to reflect the released versions that support
autowhere applicable.