/utils/olStyle
The olStyle utility module exports the default olStyle method.
- Source
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:
Name | Type | Description |
---|---|---|
Styles | array | An array of Openlayers style objects. |
style | feature-style | A JSON mapp-style object. |
icon | object | An array of Openlayers style objects. |
feature | object | The Openlayers feature to style with an icon. |
- Source
(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:
Name | Type | Description |
---|---|---|
style | feature-style | A JSON mapp-style object. |
- Source
Returns:
An Openlayers feature style object.
- Type:
- Object