Class: Modify

Mapspace.interaction. Modify

An interaction to mofify vector features in a viewer. Currently this interaction only works for Mapspace.street.Viewer.


new Modify(options)

Parameters:
Name Type Description
options Mapspace.interaction.ModifyOptions

Options.

Source:
mapspace/interaction/modify.js
Fires:
  • Mapspace.interaction.event:ModifyEvent
  • ol.Object.Event#event:change:active

Extends

Members


parameters :Object.<string, (number|string|boolean)>

The object that stores values for the parameters this interaction modifies. Property names of the object are the parameter names and values are simple primitives as number, string or boolean.

Inherited From:
Source:
mapspace/interaction/triggerinteraction.js

Methods


getActive()

Return whether the interaction is currently active.

Inherited From:
Source:
mapspace/interaction/interaction.js
Returns:

true if the interaction is active, false otherwise.

Type
boolean

getElement()

Return the DOM element where the events are listened to.

Inherited From:
Source:
mapspace/interaction/interaction.js
Returns:
Type
Element

setActive(active)

Activate or deactivate the interaction.

Parameters:
Name Type Description
active boolean

Active.

Inherited From:
Source:
mapspace/interaction/interaction.js