Repository navigation
Add identity function type - #3274
Conversation
|
@mollymerp Found a bug when this is used with color properties. Creating a test case & investigating now. |
8dc82b3 to
2c4622e
Compare
|
@mollymerp @lbud this is ready for another pass of 👀 when you are! |
|
This LGTM and tested locally w However, when you reference a |
Unfortunately there is no way to determine if a property exists on a set of features. Feature properties are weakly typed and there is no distinction between |
9475244 to
9acd7ee
Compare
|
Ready to merge this on 🍏 ! |
|
@lucaswoj Not sure if this follows what @mollymerp brought up, but is it possible to have a "fallback" value in-case of illegal values, like "", NULL, or even wrong colour names for colour styling, etc? It would be ugly to burn the default value into the data instead of the style. Also would rather not have to specify it twice in style, once for data with illegal values, once for legal values |
|
@stirringhalo see mapbox/mapbox-gl-style-spec#480 |
This PR updates the version of
mapbox-gl-funcitoninpackage.jsonto take advantage of the new identity function type added in mapbox/mapbox-gl-function#25cc @mollymerp @jfirebaugh @mapsam @lbud
Launch Checklist
mapbox-gl-style-specdocs & validator Add identity function type mapbox-gl-style-spec#512mapbox-gl-style-specPR Add identity function type mapbox-gl-style-spec#512mapbox-gl-style-specversionmapbox-gl-style-specversion inpackage.jsonmapbox-gl-test-suitePR Add circle identity function tests mapbox-gl-test-suite#149mapbox-gl-test-suiteversion inpackage.json