Class: Measurements

Mapspace.street.action. Measurements

An action for a Mapspace.control.ViewerTools or a Mapspace.control.ShortcutBar or a Mapspace.control.FeaturePanel that activates interactions in a Mapspace.street.Viewer to make measurements.


new Measurements( [options])

Parameters:
Name Type Argument Description
options Mapspace.street.action.MeasurementsOptions <optional>

Options.

Source:
mapspace-street/actions/measurements.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


changeMeasurement(measurementType)

Changes the current tool in the viewer.

Parameters:
Name Type Argument Description
measurementType Mapspace.street.MeasurementType <nullable>

The type of measurement or null to deactivate all tools.

Source:
mapspace-street/actions/measurements.js