M/impl/style/Simple~Simple


import Simple from 'M/impl/style/Simple';

new Simple()

impl/ol/style/Simple.js, line 21

Main constructor of the class.

Methods

module:M/impl/style/Simple~Simple.getValue(attr, feature, layer)

impl/ol/style/Simple.js, line 75

This function get the value of the feature which key match with the attr param

Name Type Description
attr string | number | function

attribute or function

feature ol.Feature

OpenLayer Feature

layer M.layer.Vector

Layer

applyToFeature(feature)

impl/ol/style/Simple.js, line 61

This function apply style to feature

Name Type Description
feature M.Feature

Feature to apply style

applyToLayer(layer)

impl/ol/style/Simple.js, line 43

This function apply style to layer

Name Type Description
layer M.layer.Vector

Layer

olStyleFn()

impl/ol/style/Simple.js, line 32

This function gets the ol style function of impl