Class: Translate

ngeo.interaction.Translate

new Translate(options)

An extension of the OpenLayers Translate interaction that adds the following features to it:

  • show a small arrow icon in the middle of the features allowing a visual aspect that tells the user "this feature can be moved"
  • pressing the ESC key automatically deactivate the interaction.
Parameters:
Name Type Description
options ngeox.interaction.TranslateOptions

Options.

Extends

Methods

setActive(active)

Activate or deactivate the interaction.

Parameters:
Name Type Description
active boolean

Active.

setMap(map)

Remove the interaction from its current map and attach it to the new map. Subclasses may set up event handlers to get notified about changes to the map here.

Parameters:
Name Type Description
map ol.PluggableMap

Map.