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 attrstring | number | function attribute or function
featureol.Feature OpenLayer Feature
layerM.layer.Vector Layer
-
applyToFeature(feature)
impl/ol/style/Simple.js, line 61 -
This function apply style to feature
Name Type Description featureM.Feature Feature to apply style
-
applyToLayer(layer)
impl/ol/style/Simple.js, line 43 -
This function apply style to layer
Name Type Description layerM.layer.Vector Layer
-
olStyleFn()
impl/ol/style/Simple.js, line 32 -
This function gets the ol style function of impl