ol. ol.feature

Source:
  • feature.jsdoc, line 1

TypeDefs

FeatureStyleFunction

Stability: experimental

A function that takes a {number} representing the view's resolution. It returns an Array of ol.style.Style. This way individual features can be styled. The this keyword inside the function references the ol.Feature to be styled.

Source:
  • feature.js, line 215

StyleFunction

Stability: experimental

A function that takes an ol.Feature and a {number} representing the view's resolution. The function should return an array of ol.style.Style. This way e.g. a vector layer can be styled.

Source:
  • feature.js, line 258