-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Enable property functions for text-field, text-transform #4074
Conversation
"type": "categorical", | ||
"property": "x", | ||
"stops": [ | ||
[0, "Zero {units}"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure we want to allow the combination of data-driven properties and interpolation syntax. It could further complicate the future of features like mapbox/mapbox-gl-style-spec#47 and mapbox/mapbox-gl-style-spec#104.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 agreed -- updated to resolve tokens only when text-field
is 'feature constant'
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the render tests as simple as possible:
- Render at 0/0/0, and as small as 64x64 if possible
- Simple GeoJSON coordinates like
[-10, 0]
- Don't include a background layer -- transparent is fine
- Cite Port data-driven styling (property functions) from GL JS mapbox-gl-native#4860 as the native issue
@jfirebaugh updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DDS has now landed in native. Want to look at porting support for this?
@jfirebaugh sounds like fun 😄 . Do you think it makes sense for me to first work through #4186 (enabling DDS for the first couple symbol paint properties)? |
No, I would port this first. Should be fairly straightforward (knock on wood). The issues in #4186 are thornier and may take some time to work out. |
* Enable property functions for text-field, text-transform * Do not perform text-field token replacement on property functions * Add test for text-field token replacement * Skip text-{field,transform} property function tests on native * Update resolve_text test * Simplify render tests
Launch Checklist
data-driven styling
support matrix for these properties, since we don't know what version this will go out in.