Class: RotateControl

RotateControl(optionsopt)

Tool with for rotating geometries.

Constructor

new RotateControl(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>
Control options.
Properties
Name Type Attributes Description
rotateAttribute string <optional>
Name of a feature attribute that is used for storing the rotation in rad.
style ol.style.Style.StyleLike <optional>
Style used for the rotation layer.
Source:

Extends

  • Control

Members

(private) pointerInteraction :ol.interaction.Pointer

Type:
  • ol.interaction.Pointer
Source:

(private) rotateAttribute :string

Type:
  • string
Source:

(private) rotateLayer :ol.layer.Vector

Layer for rotation feature.
Type:
  • ol.layer.Vector
Source:

Methods

activate()

Source:

deactivate()

Source:

(private) onDown(event)

Handle a pointer down event.
Parameters:
Name Type Description
event ol.MapBrowserEvent Down event
Source:

(private) onDrag(event)

Handle a pointer drag event.
Parameters:
Name Type Description
event ol.MapBrowserEvent Down event
Source:

(private) onUp(event)

Handle a pointer up event.
Parameters:
Name Type Description
event ol.MapBrowserEvent Down event
Source: