Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector Style Symbol - Text Rotate #100

Closed
jordipiqueres opened this issue Oct 8, 2018 · 1 comment
Closed

Vector Style Symbol - Text Rotate #100

jordipiqueres opened this issue Oct 8, 2018 · 1 comment

Comments

@jordipiqueres
Copy link

I have a problem related with a label layer which has a field itself that indicates the angle of rotation. I am trying to make it work but I can't.

The example below has the style to represent the rotated labels:

http://jsfiddle.net/8kyp19qz/8/

If I delete the "text-rotate" : "{AA_TXANG}" property labels are displayed with no rotation.

Could someone help me on how I should have to describe the Style configuration?

@ahocevar
Copy link
Member

ahocevar commented Oct 8, 2018

The "text-rotate" field does not support field tokens. What you can do is

        "text-rotate": {
           "type": "identity",
           "property": "AA_TXANG"
        }

See mapbox/mapbox-gl-js#873 (comment).

@ahocevar ahocevar closed this as completed Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants