Class: FeatureOverlay

ol. FeatureOverlay

experimental new ol.FeatureOverlay(opt_options)

Name Type Argument Description
options optional

Options.

Name Type Description
features Array.<ol.Feature> | ol.Collection | undefined

Features.

map ol.Map | undefined

Map.

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

Feature style.

Methods

experimental addFeature(feature)

Name Type Description
feature ol.Feature

Feature.

experimental getFeatures(){ol.Collection}

Returns:
collection.

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

Returns:
style.

experimental getStyleFunction(){ol.feature.StyleFunction|undefined}

Get the style function.

Returns:
function.

experimental removeFeature(feature)

Name Type Description
feature ol.Feature

Feature.

experimental setFeatures(features)

Name Type Description
features ol.Collection

Features collection.

experimental setMap(map)

Name Type Description
map ol.Map

Map.

experimental setStyle(style)

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.

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

Overlay style.