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

Apply text-keep-upright after text-offset #9180

Closed

Description

@andrewharvey

Platform: Mapbox Raster Tiles API?
Mapbox SDK version:

equivalent of mapbox/mapbox-gl-js#2350

Activity

  1. added
    Core
    GL JS parity
    on Jun 3, 2017
  2. jfirebaugh commented on Jul 21, 2017

    @jfirebaugh
    Contributor

    @ansis @ChrisLoer Was this included in recent text rendering PRs?

  3. ChrisLoer commented on Jul 21, 2017

    @ChrisLoer
    Contributor

    @jfirebaugh Yeah, it should be handled here:

    https://github.com/mapbox/mapbox-gl-native/blob/master/src/mbgl/layout/symbol_projection.cpp#L200

    I tested the JS version with @andrewharvey 's jsbin: http://jsbin.com/danexuj/1/edit?html,output. The actual text-offset now works "as expected" (i.e. applied relative to line, not based on text direction). But the original example was actually using text-anchor: bottom instead of text-offset, which still behaves the same as before. Should it? It seems to me that it makes more sense for text-anchor to be based off of text direction.

  4. ChrisLoer commented on Jul 21, 2017

    @ChrisLoer
    Contributor

    PR to enable the test on native: #9580

  5. added
    archived
    on Nov 5, 2018
  6. stale commented on Dec 1, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

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

Metadata

Metadata

Assignees

Labels

CoreGL JS parityarchived

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions