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