map.layer.featureStlye()

This module exports a style function for a layer

Methods

(inner) Style()

Style functions process [vector] features and return an OL style to the layer render.

(inner) clusterStyle(feature)

Applies cluster style to the feature based on layer configuration.

Parameters:
NameTypeDescription
featureObject

The feature object.

(inner) featureProperties(feature)

Assigns feature properties based on layer configuration.

Parameters:
NameTypeDescription
featureObject

The feature object.

(inner) featureStyle(layer) → {function}

Returns a style function for OL vector layers.

Parameters:
NameTypeDescription
layerObject

The layer object.

Properties
NameTypeAttributesDescription
layer.stylelayer-style

The layer style config.

style.cacheBoolean<optional>

The feature style should be retrieved from the feature 'Styles' property.

Returns:

The style function for the layer.

Type: 
function

(inner) highlightStyle(feature)

Applies highlight style to the feature based on layer configuration.

Parameters:
NameTypeDescription
featureObject

The feature object.

(inner) labelStyle(feature)

Applies label style to the feature based on layer configuration.

Parameters:
NameTypeDescription
featureObject

The feature object.

(inner) selectedStyle(feature)

Applies selected style to the feature based on layer configuration.

Parameters:
NameTypeDescription
featureObject

The feature object.