Closed tmcw closed 7 years ago
"data-driven styles" / "data-driven styling" is an umbrella term. "property functions" are one type of data-driven function. "zoom-and-property functions" is another. (Arguably, the interpolation syntax supported by text-field
and icon-image
are a third.)
The documentation should refer to support for "data-driven styling", not about support for "property functions" specifically. We're not going to create any properties that support property functions but not zoom-and-property functions, and most people looking for DDS support information don't care about the difference between those two types of functions.
@jfirebaugh I see your objection but am not seeing a proposal to clarify the documentation.
To restate the problem without potentially incorrect wording:
If we say that support for "property functions" varies but we don't say "property function" anywhere in the particular property documentation, we're inviting the reader to ask a question and not providing the answer. I am amenable to any solution that fixes this problem.
Concretely, I suggest fixing #529 and then replacing "Note that support for property functions is not available across all properties and platforms at this time." with the following:
Support for property functions and zoom-and-property functions -- commonly known as "data-driven styling" -- varies by style property and SDK. Refer to the "data-driven styling" row in the SDK Support matrix for the property you're interested in.
Thanks very much for addressing this issue. I've been bitten a few times.
Things that happen to me:
Also...tiny unrelated issue: Function "type" and Function "colorSpace" don't mention what their defaults are.
This issue was moved to mapbox/mapbox-gl-js#4139
Via a support question this morning:
Right now we have, under Property Functions:
But then in the per-property spec
We need to connect these things by