We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are many methods within StyleLayer that only operate on a single style property.
StyleLayer
setLayoutProperty
getLayoutProperty
getLayoutValue
setPaintProperty
getPaintProperty
getPaintValue
getPaintValueStopZoomLevels
getPaintInterpolationT
isPaintValueFeatureConstant
isLayoutValueFeatureConstant
isPaintValueZoomConstant
A cleaner design would be to have a StyleProperty object per property with all of these methods
StyleProperty
type StyleValue<T> { isZoomConstant: boolean; isFeatureConstant: boolean; calculate(zoom:number, featureProperties: {}) => T; getInterpolationT(zoom: number) =>; ... }
At the same time we might make StyleTransition conform to the same interface as StyleProperty
StyleTransition
ref #2629 (comment)
The text was updated successfully, but these errors were encountered:
👍 -- what gl-native does might serve as a model here:
PaintProperty
LayoutProperty
PropertyValue
Sorry, something went wrong.
jfirebaugh
Successfully merging a pull request may close this issue.
There are many methods within
StyleLayer
that only operate on a single style property.setLayoutProperty
getLayoutProperty
getLayoutValue
setPaintProperty
getPaintProperty
getPaintValue
getPaintValueStopZoomLevels
getPaintInterpolationT
isPaintValueFeatureConstant
isLayoutValueFeatureConstant
isPaintValueZoomConstant
A cleaner design would be to have a
StyleProperty
object per property with all of these methodsAt the same time we might make
StyleTransition
conform to the same interface asStyleProperty
ref #2629 (comment)
The text was updated successfully, but these errors were encountered: