FeatureLayer.StyleFactory

  • FeatureLayer.StyleFactory is 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 FeatureStyle object dictating the polygon's appearance.

  • The primary method, getStyle, takes a Feature as input and provides the corresponding FeatureStyle for that specific feature.

public static interface FeatureLayer.StyleFactory

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
getStyle(Feature feature)
Returns the FeatureStyle of the Feature.

Public Methods

public abstract FeatureStyle getStyle (Feature feature)

Returns the FeatureStyle of the Feature.

Parameters
feature