experimental new ol.FeatureOverlay(opt_options)
| Name | Type | Argument | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
optional
Options.
|
||||||||||||||
Methods
-
experimental addFeature(feature)
-
Name Type Description featureol.Feature Feature.
-
experimental getFeatures(){ol.Collection}
-
Returns:
collection.
-
experimental getStyle(){ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction}
-
Get the style for features. This returns whatever was passed to the
styleoption at construction or to thesetStylemethod.Returns:
style.
-
experimental getStyleFunction(){ol.feature.StyleFunction|undefined}
-
Get the style function.
Returns:
function.
-
experimental removeFeature(feature)
-
Name Type Description featureol.Feature Feature.
-
experimental setFeatures(features)
-
Name Type Description featuresol.Collection Features collection.
-
experimental setMap(map)
-
Name Type Description mapol.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 styleol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction Overlay style.
OpenLayers 3