ol. ol.FeatureOverlay

new FeatureOverlay

Stability: experimental
Parameters:
Name Type Argument Description
options olx.FeatureOverlayOptions <optional>

Options.

Source:
  • featureoverlay.js, line 21

Methods

addFeature

Stability: experimental
Parameters:
Name Type Description
feature ol.Feature

Feature.

Source:
  • featureoverlay.js, line 90

getFeatures

Stability: experimental
Source:
  • featureoverlay.js, line 99
Returns:

Features collection.

Type
ol.Collection

getStyle

Stability: not documented

Get the style for features. This returns whatever was passed to the style option at construction or to the setStyle method.

Source:
  • featureoverlay.js, line 264
Returns:

Overlay style.

Type
ol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction

getStyleFunction

Stability: not documented

Get the style function.

Source:
  • featureoverlay.js, line 273
Returns:

Style function.

Type
ol.feature.StyleFunction | undefined

removeFeature

Stability: experimental
Parameters:
Name Type Description
feature ol.Feature

Feature.

Source:
  • featureoverlay.js, line 170

setFeatures

Stability: experimental
Parameters:
Name Type Description
features ol.Collection

Features collection.

Source:
  • featureoverlay.js, line 189

setMap

Stability: experimental
Parameters:
Name Type Description
map ol.Map

Map.

Source:
  • featureoverlay.js, line 227

setStyle

Stability: experimental

Set the style for features. This can be a single style object, an array of styles, or a function that takes a feature and resolution and returns an array of styles.

Parameters:
Name Type Description
style ol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction

Overlay style.

Source:
  • featureoverlay.js, line 251