/utils/olStyle

The olStyle utility module exports the default olStyle method.

Methods

(inner) iconStyle(Styles, style, icon, feature)

The iconStyle method calculates the scale for the Openlayers Style Icon.

On Openlayers Style Icon requires an URL. A data:image URL will be created from the svgSymbols module methods if not explicit.

Parameters:
NameTypeDescription
Stylesarray

An array of Openlayers style objects.

stylefeature-style

A JSON mapp-style object.

iconobject

An array of Openlayers style objects.

featureobject

The Openlayers feature to style with an icon.

(inner) olStyle(style) → {Object}

The olStyle method takes a mapp-style JSON representation to create an Openlayers style object for rendering Openlayers features in the Openlayers mapview.Map.

Parameters:
NameTypeDescription
stylefeature-style

A JSON mapp-style object.

Returns:

An Openlayers feature style object.

Type: 
Object