mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Questions about property- and property-zoom functions #586

Closed davidtheclark closed 7 years ago

davidtheclark commented 7 years ago

I'm trying to build a first-draft UI for these in Studio and ran into a few questions. I didn't find answers in the style spec docs, so I'm thinking that maybe when I have answers I'll try to add them to the docs:

davidtheclark commented 7 years ago

cc @mapbox/appbox

jfirebaugh commented 7 years ago

Is there a minimum number of stops for property- or property-zoom functions?

The minimum is 1. This is enforced by the validator.

How do you set a fallback property value?

I filed #582 related to this, and #480 is also related.

Does property-function: true mean both property-function and property-zoom-function

Yes. Note that you can't really rely on this property for anything meaningful because it indicates which properties could conceivably someday support data-driven functions, not which ones actually do. I think we should probably remove it in favor of sdk-support['data-driven styling'].

davidtheclark commented 7 years ago

I think we should probably remove it in favor of sdk-support['data-driven styling']

If 'data-driven styling' is supported, then, it will favor both types of functions, right?

jfirebaugh commented 7 years ago

Correct.