This namespace contains definitions for generic actions. An action is an object
that encapsulates the operations executed by a control
when is interacted or by a viewer when it is interacted.
Special cases of actions can include others that execute operations when a
workspace is interacted.
By separating the user interface (controls) from the operations executed (actions) the API offers a more modular way of integrate all the pieces in a web app. For example, an action could respond to events triggered by different controls as far as the events are the same, avoiding the need to write the same code in when different controls are used.
- Source:
- mapspace/actions/action.jsdoc
Classes
- Action
- AddressInfo
- Attribution
- ChangeMap
- ContactFrom
- Dashboard
- DateSelector
- FeatureEdition
- FeaturePanel
- FeatureSelection
- FullScreen
- Geolocation
- History
- ImageProvider
- Language
- LayerSwitcher
- Login
- Logout
- North
- OpenStreetImage
- OrthoDownload
- OutputProjection
- PdfReport
- Profile3dPanel
- ReportPanel
- ReverseGeocoding
- Rotator
- ScreenShot
- Search
- SidePanel
- StatusBar
- SyncAction
- TaskNotification
- TimeRange
- Tools
- Units
- ViewerMenu
- ViewerName
- ViewerSettings
- ViewerSwitcher
- WorkspaceAction
- WorkspaceInfo
- WorkspaceManager
- Zoom
Type Definitions
-
ActionOptions
-
Options for
Mapspace.action.Action.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
-
AttributionOptions
-
Options for
Mapspace.action.Attribution.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
autoCollapsibleMinWidthboolean | undefined The min width under which the control will be shown as collapsible.
-
FeaturePanelOptions
-
Options for a
Mapspace.action.FeaturePanel.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
workspaceMapspace.Workspace | undefined The workspace this action is tied to.
localStorageKeystring | undefined A key that can be used to store values locally inside the action.
zoomDurationnumber | undefined Duration of the zoom animation in milliseconds.
flashDurationnumber | undefined Duration of the flash animation in milliseconds.
interactionStyleol.style.Style | undefined Interaction style to use with interactive tools.
-
LoginOptions
-
Options for
Mapspace.action.Login.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
loginSuccessFnfunction | undefined The function that will be executed if login is successful. Any function receiving one parameter: a
Mapspace.UserDataobject containing user data. -
NorthOptions
-
Options for
Mapspace.action.Actionthat execute rotations and show the north.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
durationnumber | undefined Duration of the rotation animation in milliseconds.
-
RotatorOptions
-
Options for
Mapspace.action.Actionthat execute rotations and show the north.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
durationnumber | undefined Duration of the rotation animation in milliseconds.
-
SyncActionOptions
-
Options for
Mapspace.action.SyncAction.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
workspaceMapspace.Workspace | undefined The workspace this action is tied to.
typeMapspace.SyncType | undefined Type of syncing.
syncedViewIndexnumber | undefined The view index of the synced viewer.
-
ViewerInfoOptions
-
Options for
Mapspace.ortho.action.ViewerInfo.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
infoSetupArray.<Mapspace.ViewerInfoOption> | undefined the definition of the different informations.
projectionol.ProjectionLike | undefined For coordinates, a projection object to which transform coordinates. If no projection is given then current map projection is used.
undefinedHTMLstring | undefined For coordinates HTML to show when no data is available. Defaults to an empty string.
-
WorkspaceActionOptions
-
Options for
Mapspace.action.WorkspaceAction- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
workspaceMapspace.Workspace | undefined The workspace this action is tied to.
localStorageKeystring | undefined A key that can be used to store values locally inside the action.
-
WorkspaceManagerEventType
-
Types of events for a
Mapspace.action.WorkspaceManager.Name Value Description Mapspace.action.WorkspaceManagerEventType.WORKSPACELOADED workspaceloaded Triggered when a workspace is loaded Mapspace.action.WorkspaceManagerEventType.WORKSPACEFAILED workspaceempty Triggered when something went wrong loading a workspace (empty list of workspaces or bad deserialization) - Source:
- mapspace/enums.js
-
WorkspaceManagerOptions
-
Options for
Mapspace.action.WorkspaceManager.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to. This can be ignored because this action is not tied to a particular viewer.
targetElement | undefined The target for the workspace.
sideBarMapspace.control.SideBar | undefined The SideBar to use for controls that require a SideBar.
locationMapspace.ViewerLocationOptions | undefined The default location given to viewers when this action creates a new workspace.
-
ZoomOptions
-
Options for
Mapspace.action.Zoom- Source:
- mapspace/typedefs.js
Properties:
Name Type Description controlMapspace.control.Control | undefined The control this action is attached to.
viewerMapspace.Viewer | undefined The viewer this action is tied to.
durationnumber | undefined Duration of the zoom animation in milliseconds.