new FeaturePanel( [options])
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
options |
Mapspace.action.FeaturePanelOptions |
<optional> |
Options. |
- Source:
- mapspace-oblique/actions/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 snappingOptions
Mapspace.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 layer
Mapspace.layer.Vector The layer.
features
Array.<ol.Feature> The array of features with changes.
action
Mapspace.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