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 featureol.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
styleoption at construction or to thesetStylemethod.- 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 featureol.Feature Feature.
- Source:
- featureoverlay.js, line 170
-
setFeatures
Stability: experimental -
Parameters:
Name Type Description featuresol.Collection Features collection.
- Source:
- featureoverlay.js, line 189
-
setMap
Stability: experimental -
Parameters:
Name Type Description mapol.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 styleol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction Overlay style.
- Source:
- featureoverlay.js, line 251
OpenLayers 3