new PolygonStyleModel()
modules/vectorStyle/polygonStyle.js, line 15
Class to create ol.style.Style
Properties:
Name | Type | Description |
---|---|---|
feature |
ol/feature | Feature to be styled. |
styles |
object | styling properties to overwrite defaults |
isClustered |
Boolean | Flag to show if feature is clustered. |
Extends
Methods
-
getStyle(){ol/style}
modules/vectorStyle/polygonStyle.js, line 38 -
This function returns a style for each feature.
Returns:
The created style.
-
inherited getValueFromPath(featureProperties, path){*}
modules/vectorStyle/style.js, line 68 -
Returns the value from the given path.
Name Type Description featureProperties
Object Feature properties. path
String Field as object path. Returns:
Value from given path.
-
inherited prepareField(featureProperties, field){*}
modules/vectorStyle/style.js, line 49 -
Returns the value of the given field. Also considers that the field can be an object path.
Name Type Description featureProperties
Object Feature properties. field
String Field to get value. Returns:
Value from given field.