Class: MoveControl

MoveControl()

Control for moving geometries.

Constructor

new MoveControl()

Source:

Extends

Classes

Control
MoveControl

Members

(private) className :string

Html class name of the control button
Type:
  • string
Inherited From:
Source:

(private) coordinate :ol.Coordinate

Type:
  • ol.Coordinate
Source:

(private) cursor :string

Type:
  • string
Source:

(private) editor :ole.Editor

ole.Editor instance.
Type:
  • ole.Editor
Inherited From:
Source:

(private) feature :ol.Feature

Type:
  • ol.Feature
Source:

(private) pointerInteraction :ol.interaction.Pointer

Type:
  • ol.interaction.Pointer
Source:

(private) source :ol.source.Vector

Source with edit features.
Type:
  • ol.source.Vector
Inherited From:
Source:

(private) standalone :Boolean

Type:
  • Boolean
Inherited From:
Source:

(private) title :string

Control title.
Type:
  • string
Inherited From:
Source:

Methods

activate()

Activate the control
Overrides:
Source:

deactivate()

Dectivate the control
Overrides:
Source:

getActive() → {Boolean}

Returns the active state of the control.
Inherited From:
Source:
Returns:
Active state.
Type
Boolean

getElement() → {Element}

Returns the control's element.
Inherited From:
Source:
Returns:
the control element.
Type
Element

(private) handleDownEvent(evt)

Handle the down event of the pointer interaction.
Parameters:
Name Type Description
evt ol.MapBrowserEvent Event.
Source:

(private) handleDragEvent(evt)

Handle the drag event of the pointer interaction.
Parameters:
Name Type Description
evt ol.MapBrowserEvent Event.
Source:

(private) handleMoveEvent(evt)

Handle the move event of the pointer interaction.
Parameters:
Name Type Description
evt ol.MapBrowserEvent Event.
Source:

(private) handleUpEvent(evt)

Handle the up event of the pointer interaction.
Parameters:
Name Type Description
evt ol.MapBrowserEvent Event.
Source:

(private) onClick()

Click handler for the control element.
Inherited From:
Source:

(protected) setEditor(editor)

Introduce the control to it's editor.
Parameters:
Name Type Description
editor ole.Editor OLE Editor.
Inherited From:
Source:

(protected) setMap(map)

Sets the map of the control.
Parameters:
Name Type Description
map ol.Map The map object.
Inherited From:
Source: