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

How can I put a nested field name while defining a data driven styling? #4544

Closed
agaase opened this issue Apr 5, 2017 · 1 comment
Closed

Comments

@agaase
Copy link

agaase commented Apr 5, 2017

My geojson data (converted to mbtiles) has following format
"properties": { "excessTime": { "one": 123, "two" : 134 } }

I want to define a style which can style based on the fields inside excessTime; something like

'fill-color': { "property" : "excessTime.one", "type": "interval", "stops" : [ ] },
Is it possible right now with the current data driven styling API?

@jfirebaugh
Copy link
Contributor

It's not possible right now; you'll need to flatten the properties in the source data. A request for nested property support in tiles is tracked in mapbox/vector-tile-spec#75.

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