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
return[newValidationError(options.key,options.value,'"feature-state" data expressions are not supported with layout properties.')];
– does this mean that layout properties like icon-image and text-size cannot be used with the feature-state expression? If that is the case, could we capture this constraint in the spec documentation:
"doc": "Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state object.",
?
Right now, there's no way to know that we're supposed to hide this expression in the Studio UI for layout properties with data driven styling support.
The text was updated successfully, but these errors were encountered:
@samanpwbb Are you thinking that a note in the doc field would be enough, or are you looking for an additional field in the style-spec to automate the Studio UI?
When reading up on feature-state, I noticed this line:
mapbox-gl-js/src/style-spec/validate/validate_expression.js
Line 24 in 872c372
icon-image
andtext-size
cannot be used with thefeature-state
expression? If that is the case, could we capture this constraint in the spec documentation:mapbox-gl-js/src/style-spec/reference/v8.json
Line 2609 in 1a8e9fe
Right now, there's no way to know that we're supposed to hide this expression in the Studio UI for layout properties with data driven styling support.
The text was updated successfully, but these errors were encountered: