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
Members
(private) pointerInteraction :ol.interaction.Pointer
Type:
- Source:
(private) rotateAttribute :string
Type:
- Source:
(private) rotateLayer :ol.layer.Vector
Layer for rotation feature.
Type:
- 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: