Class: PolygonStyle

PolygonStyle

A class that represents styling for polygon features.

new PolygonStyle(source, styleOptions)

GoMap/Styles/PolygonStyle.ts, line 16

Creates an instance of PolygonStyle.

Name Type Description
source BaseSource

The source from which the polygon data is derived.

styleOptions Go3dStylesConfig

Configuration options for the polygon style.

Extends

  • undefined

Methods

apply(feature)

GoMap/Styles/PolygonStyle.ts, line 30

Applies the polygon style to a given polygon feature.

Name Type Description
feature Geometry

The polygon geometry feature to which the polygon style will be applied.