mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Support arbitrary expressions on "requires" property #513

Closed davidtheclark closed 7 years ago

davidtheclark commented 7 years ago

I'm thinking about:

So I'm wondering if it might be worthwhile to reconsider the current format of the "requires" value, changing it to something that can be more consistent and robust.

How about this: The value of "requires" is always an array of objects, each object with these properties:

The main principle here is that an object is going to be more flexible and future-proof than a string.

That's my idea.

davidtheclark commented 7 years ago

I see one up-thumb ... Anybody else object or agree to this? I can work on a PR if we think it's worth an experiment.

lucaswoj commented 7 years ago

This issue was moved to mapbox/mapbox-gl-js#4130