You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "function" property in the style specification JSON for a style property currently takes on the enumerated values "interpolated" and "piecewise-constant". These terms are a historical accident, not used elsewhere in our function vocabulary.
The "function" property is used:
To select a default function type if the function itself does not have a "type" property. (If "function": "interpolated", then "type": "exponential", else "type": "interval".)
In function validation, to prohibit the use of exponential functions when the property is not interpolatable.
In function validation, to mandate the use of integer stops when the property is not interpolatable (though this is proposed for removal).
In essence, what's really being checked in all these cases is "is it possible to interpolate between two values of this property?" This would be more clearly served by a boolean property in the style specification: "interpolatable": true/false.
Whether or not a property is interpolatable can almost be deduced from the property type, with number and color being interpolatable; enum, string, and boolean not; and array reducing to the interpolatability of the element type. But line-dasharray is the exception -- it's not interpolatable, even though it's an array of numbers.
The text was updated successfully, but these errors were encountered:
The "function" property in the style specification JSON for a style property currently takes on the enumerated values "interpolated" and "piecewise-constant". These terms are a historical accident, not used elsewhere in our function vocabulary.
The "function" property is used:
"type"
property. (If"function": "interpolated"
, then"type": "exponential"
, else"type": "interval"
.)In essence, what's really being checked in all these cases is "is it possible to interpolate between two values of this property?" This would be more clearly served by a boolean property in the style specification:
"interpolatable": true/false
.Whether or not a property is interpolatable can almost be deduced from the property type, with
number
andcolor
being interpolatable;enum
,string
, andboolean
not; andarray
reducing to the interpolatability of the element type. Butline-dasharray
is the exception -- it's not interpolatable, even though it's an array of numbers.The text was updated successfully, but these errors were encountered: