map.layer.featureStlye()
This module exports a style function for a layer
- Source
Methods
(inner) Style()
Style functions process [vector] features and return an OL style to the layer render.
- Source
(inner) clusterStyle(feature)
Applies cluster style to the feature based on layer configuration.
Parameters:
Name | Type | Description |
---|---|---|
feature | Object | The feature object. |
- Source
(inner) featureProperties(feature)
Assigns feature properties based on layer configuration.
Parameters:
Name | Type | Description |
---|---|---|
feature | Object | The feature object. |
- Source
(inner) featureStyle(layer) → {function}
Returns a style function for OL vector layers.
Parameters:
PropertiesName | Type | Description |
---|---|---|
layer | Object | The layer object. |
Name | Type | Attributes | Description |
---|---|---|---|
layer.style | layer-style | The layer style config. | |
style.cache | Boolean | <optional> | The feature style should be retrieved from the feature 'Styles' property. |
- Source
Returns:
The style function for the layer.
- Type:
- function
(inner) highlightStyle(feature)
Applies highlight style to the feature based on layer configuration.
Parameters:
Name | Type | Description |
---|---|---|
feature | Object | The feature object. |
- Source
(inner) labelStyle(feature)
Applies label style to the feature based on layer configuration.
Parameters:
Name | Type | Description |
---|---|---|
feature | Object | The feature object. |
- Source
(inner) selectedStyle(feature)
Applies selected style to the feature based on layer configuration.
Parameters:
Name | Type | Description |
---|---|---|
feature | Object | The feature object. |
- Source