Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Highway shield text is tilted #5683

Closed
Closed

Description

@1ec5

When the map is tilted, Interstate and state route shields remain upright, as expected, but the text inside them tilts with the map:

gl-native

Reproduces in Streets, Outdoors, and Satellite Streets styles in 5fb0e87 on iOS and macOS. Does not reproduce in mapbox/mapbox-gl-js@742b46d:

gl-js

Exit shields are unaffected. The difference is likely that highway shields have line placement, whereas exit shields have point placement.

Activity

  1. added
    Core
    on Jul 14, 2016
  2. 1ec5 commented on Jul 14, 2016

    @1ec5
    ContributorAuthor

    Bisect implicates ecd4aa1 (#5288).

    /cc @yhahn

  3. added this to the ios-v3.4.0 milestone on Jul 15, 2016
  4. self-assigned this
    on Jul 19, 2016
  5. added
    navigation
    on Aug 15, 2016
  6. added
    release blocker
    on Aug 15, 2016
  7. yhahn commented on Aug 30, 2016

    @yhahn
    Contributor

    @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.

  8. 1ec5 commented on Aug 31, 2016

    @1ec5
    ContributorAuthor

    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.

  9. added a commit that references this issue on Aug 31, 2016
    804e860
  10. 1ec5 commented on Aug 31, 2016

    @1ec5
    ContributorAuthor

    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:

    upright

    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?

  11. self-assigned this
    on Sep 13, 2016
  12. boundsj commented on Sep 20, 2016

    @boundsj
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Corebugnavigationrelease blocker

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions