Constructor
new RotateControl(optionsopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Control options.
Properties
|
- Source:
Extends
Members
(private) className :string
Html class name of the control button.
Type:
- string
- Overrides:
- Source:
(private) dialogTarget :HTMLElement
Specify a target if you want the dialog div used by the
control to be rendered outside of the map's viewport.
Type:
- HTMLElement
- Overrides:
- Source:
(private) editor :ole.Editor
ole.Editor instance.
Type:
- ole.Editor
- Overrides:
- Source:
(private) layerFilter :function
Filter editable layer. Used by select interactions instead of
the old source property.
Type:
- function
- Overrides:
- Source:
(private) pointerInteraction :ol.interaction.Pointer
Type:
- ol.interaction.Pointer
- Source:
(private) properties :object
Control properties.
Type:
- object
- Overrides:
- Source:
(private) rotateAttribute :string
Type:
- string
- Source:
(private) rotateLayer :ol.layer.Vector
Layer for rotation feature.
Type:
- ol.layer.Vector
- Source:
(private) source :ol.source.Vector
Source with edit features.
Type:
- ol.source.Vector
- Overrides:
- Source:
(private) standalone :Boolean
Type:
- Boolean
- Overrides:
- Source:
(private) title :string
Control title.
Type:
- string
- Overrides:
- Source:
Methods
activate()
Activate the control
- Overrides:
- Source:
(private) closeDialog()
Closes the control dialog.
- Overrides:
- Source:
deactivate(silentopt)
Dectivate the control
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
silent |
boolean |
<optional> |
Do not trigger an event. |
- Overrides:
- Source:
getActive() → {Boolean}
Returns the active state of the control.
- Overrides:
- Source:
Returns:
Active state.
- Type
- Boolean
getElement() → {Element}
Returns the control's element.
- Overrides:
- Source:
Returns:
the control element.
- Type
- Element
getProperties() → {object}
Return properties.
- Overrides:
- Source:
Returns:
Copy of control properties.
- Type
- object
(private) onClick()
Click handler for the control element.
- Overrides:
- 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:
openDialog()
Open the control's dialog (if defined).
- Overrides:
- Source:
(protected) setEditor(editor)
Introduce the control to it's editor.
Parameters:
Name | Type | Description |
---|---|---|
editor |
ole.Editor | OLE Editor. |
- Overrides:
- Source:
(protected) setMap(map)
Sets the map of the control.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map object. |
- Overrides:
- Source:
setProperties(properties, silentopt)
Set properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
object | New control properties. | |
silent |
boolean |
<optional> |
If true, no propertychange event is triggered. |
- Overrides:
- Source: