new ol.FeatureOverlay(opt_options) experimental
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||||||||
Methods
-
addFeature(feature) experimental
src/ol/featureoverlay.js, line 101 -
Name Type Description featureol.Feature Feature.
-
getFeatures(){ol.Collection.<ol.Feature>} experimental
src/ol/featureoverlay.js, line 110 -
Returns:
Features collection.
-
getMap(){ol.Map} experimental
src/ol/featureoverlay.js, line 119 -
Returns:
The map with which this feature overlay is associated.
-
getStyle(){ol.style.Style|Array.<ol.style.Style>|ol.style.StyleFunction} experimental
src/ol/featureoverlay.js, line 304 -
Get the style for features. This returns whatever was passed to the
styleoption at construction or to thesetStylemethod.Returns:
Overlay style.
-
getStyleFunction(){ol.style.StyleFunction|undefined} experimental
src/ol/featureoverlay.js, line 314 -
Get the style function.
Returns:
Style function.
-
removeFeature(feature) experimental
src/ol/featureoverlay.js, line 213 -
Name Type Description featureol.Feature Feature.
-
setFeatures(features) experimental
src/ol/featureoverlay.js, line 232 -
Name Type Description featuresol.Collection.<ol.Feature> Features collection.
-
setMap(map) experimental
src/ol/featureoverlay.js, line 266 -
Name Type Description mapol.Map Map.
-
setStyle(style) experimental
src/ol/featureoverlay.js, line 290 -
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 styleol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction Overlay style.