new ol.FeatureOverlay(opt_options) experimental
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Methods
-
addFeature(feature) experimental
-
Name Type Description feature
ol.Feature Feature.
-
getFeatures(){ol.Collection.<ol.Feature>} experimental
-
Returns:
Features collection.
-
getStyle(){ol.style.Style|Array.<ol.style.Style>|ol.style.StyleFunction} experimental
-
Get the style for features. This returns whatever was passed to the
style
option at construction or to thesetStyle
method.Returns:
Overlay style.
-
getStyleFunction(){ol.style.StyleFunction|undefined} experimental
-
Get the style function.
Returns:
Style function.
-
removeFeature(feature) experimental
-
Name Type Description feature
ol.Feature Feature.
-
setFeatures(features) experimental
-
Name Type Description features
ol.Collection.<ol.Feature> Features collection.
-
setMap(map) experimental
-
Name Type Description map
ol.Map Map.
-
setStyle(style) 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.
Name Type Description style
ol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction Overlay style.