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

Enable property functions for text-field, text-transform #4074

Merged
merged 6 commits into from
Feb 2, 2017

Conversation

anandthakker
Copy link
Contributor

@anandthakker anandthakker commented Feb 1, 2017

Launch Checklist

  • write tests for all new functionality
  • document any changes to public APIs -- updated v8.json for validation purposes, but not the data-driven styling support matrix for these properties, since we don't know what version this will go out in.
  • post benchmark scores
  • manually test the debug page

"type": "categorical",
"property": "x",
"stops": [
[0, "Zero {units}"],
Copy link
Contributor

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.

Copy link
Contributor Author

@anandthakker anandthakker Feb 1, 2017

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'

@anandthakker
Copy link
Contributor Author

benchmark master 5199aaf master b701148
map-load 217 ms 147 ms
style-load 120 ms 103 ms
buffer 1,154 ms 1,132 ms
fps 59 fps 60 fps
frame-duration 4.3 ms, 0% > 16ms 4.4 ms, 0% > 16ms
query-point 0.96 ms 1.00 ms
query-box 72.58 ms 74.86 ms
geojson-setdata-small 8 ms 6 ms
geojson-setdata-large 115 ms 157 ms

Copy link
Contributor

@jfirebaugh jfirebaugh left a 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:

@anandthakker
Copy link
Contributor Author

@jfirebaugh updated

Copy link
Contributor

@jfirebaugh jfirebaugh left a 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?

@anandthakker anandthakker merged commit 884618d into master Feb 2, 2017
@anandthakker anandthakker deleted the text-field-property-function branch February 2, 2017 19:06
@anandthakker
Copy link
Contributor Author

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)?

@jfirebaugh
Copy link
Contributor

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.

anandthakker added a commit to mapbox/mapbox-gl-native that referenced this pull request Feb 4, 2017
anandthakker added a commit to mapbox/mapbox-gl-native that referenced this pull request Feb 8, 2017
mapsam pushed a commit that referenced this pull request Feb 8, 2017
* 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
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

Successfully merging this pull request may close these issues.

2 participants