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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[null,null,["Last updated 2025-05-07 UTC."],[[["`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."]]],[]]