new FeaturePanel( [opt_options])
Parameters:
| Name | Type | Argument | Description | 
|---|---|---|---|
opt_options | 
            
            Mapspace.action.FeaturePanelOptions | 
                
                    <optional> | 
            
            
            Options.  | 
        
- Source:
 - mapspace-threed/action/featurepanel.js
 
Extends
Members
- 
    
<nullable> localStorageKey :string
 - 
    
    
This is a key that can be used to store content locally in the action.
- Inherited From:
 - Source:
 - mapspace/actions/workspaceaction.js
 
 - 
    
<nullable> workspace :Mapspace.Workspace
 - 
    
    
This is the workspace this action will be tied to.
- Inherited From:
 - Source:
 - mapspace/actions/workspaceaction.js
 
 
Methods
- 
    
<protected> activateSnapping(snappingOptions)
 - 
    
    
Activates snapping in the viewer. This functionality for now only works for 2D viewers.
Parameters:
Name Type Description snappingOptionsMapspace.SnappingOptions Snapping options.
- Inherited From:
 - Source:
 - mapspace/actions/featurepanel.js
 
 - 
    
saveFeatures(layer, features, action)
 - 
    
    
Returns a Promise that saves an array of features that has changed. The storage of the features can be in user local storage (cookies) or in a server database. That functionality is determined in each layer type.
Parameters:
Name Type Argument Description layerMapspace.layer.Vector The layer.
featuresArray.<ol.Feature> The array of features with changes.
actionMapspace.FeatureActionType <nullable> 
An optional type of action performed in the features.
- Inherited From:
 - Source:
 - mapspace/actions/featurepanel.js
 
Returns:
A Promise never rejects and returns an array with the features successfully saved for the resolve function.
- Type
 - Promise