Closed davidtheclark closed 7 years ago
cc @mapbox/appbox
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']
.
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?
Correct.
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:
name
, and you don’t provide a stop for every possible value: how can you control what happens whenname
does not match a stop? I want "Mexico" to be red, "Canada" to be purple, and everything else to be pink.property-function: true
mean both property-function and property-zoom-function, or do no properties have property-zoom-function support yet?