-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Highway shield text is tilted #5683
Comments
@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:
Will keep trying to get to the bottom of this today. |
Just a hunch, but in gl-native, if |
When text-pitch-alignment is unspecified, only use the explicit value of text-rotation-alignment. If text-rotation-alignment is unspecified, back to the style specification default for text-pitch-alignment rather than text-rotation-alignment. Fixes #5683.
Indeed, falling back to a temporarily stored value of On the other hand, it isn’t quite right because the street labels are also falling back to Effectively, this means that |
I think the following summarizes what is required to land the set of PRs that fix this issue:
In the future, the style spec should be updated to reflect the released versions that support |
When the map is tilted, Interstate and state route shields remain upright, as expected, but the text inside them tilts with the map:
Reproduces in Streets, Outdoors, and Satellite Streets styles in 5fb0e87 on iOS and macOS. Does not reproduce in mapbox/mapbox-gl-js@742b46d:
Exit shields are unaffected. The difference is likely that highway shields have line placement, whereas exit shields have point placement.
The text was updated successfully, but these errors were encountered: