Namespace: Style

BKGWebMap. Style

Source:

Methods

<static> createCustomStyle(singleStyle) → {string}

Use OpenLayers style class for custom styles
Parameters:
Name Type Description
singleStyle Configuration of style
Source:
Returns:
Type
string

<static> createStyles(stylesArray) → {object}

Create OpenLayer style to be used in vector layers
Parameters:
Name Type Description
stylesArray Array with configuration of styles
Source:
Returns:
- An object with OpenLayers style classes
Type
object

<static> createSymbolStyle(singleStyle) → {object}

Create OpenLayers style class for symbol styles
Parameters:
Name Type Description
singleStyle object Configuration of style
Source:
Returns:
Type
object

<static> fill(singleStyleFill) → {object|undefined}

Use ol.style.Fill class
Parameters:
Name Type Description
singleStyleFill object | undefined ol.style.Fill
Source:
Returns:
Type
object | undefined

<static> sanitizeColor(color) → {string}

Be sure to have # in HEX string
Parameters:
Name Type Description
color string Color HEX
Source:
Returns:
Type
string

<static> stroke(singleStyleStroke) → {object|undefined}

Use ol.style.Stroke class
Parameters:
Name Type Description
singleStyleStroke object | undefined ol.style.Stroke
Source:
Returns:
Type
object | undefined

<static> svgColor(color) → {string}

Replace # with %23 for svg color. # in URI body is deprecated
Parameters:
Name Type Description
color string Color HEX
Source:
Returns:
Type
string