AI-generated Key Takeaways
-
FeatureLayer.StyleFactoryis a function that determines the style of each polygon within a feature layer. -
It operates by applying a function to each polygon, which in turn returns a
FeatureStyleobject dictating the polygon's appearance. -
The primary method,
getStyle, takes aFeatureas input and provides the correspondingFeatureStylefor that specific feature.
The style factory function applied to every polygon in the affected feature layer. This
function must return a FeatureStyle object that specifies how to style the polygon.
Public Method Summary
| abstract FeatureStyle |
Public Methods
public abstract FeatureStyle getStyle (Feature feature)
Returns the FeatureStyle of the Feature.
Parameters
| feature |
|---|