new DragAndDrop(opt_options)
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Fires:
-
DragAndDropEvent
-
change
(module:ol/events/Event~Event) - Generic change event. Triggered when the revision counter is increased. -
change:active
(module:ol/Object.ObjectEvent) -
propertychange
(module:ol/Object.ObjectEvent) - Triggered when a property is changed.
Extends
Observable Properties
Name | Type | Settable | ol/Object.ObjectEvent type | Description |
---|---|---|---|---|
active |
boolean | yes | change:active |
|
Methods
-
Return whether the interaction is currently active.
Returns:
true
if the interaction is active,false
otherwise.
-
Get the map associated with this interaction.
Returns:
Map.
-
Handles the
map browser event
.Name Type Description mapBrowserEvent
module:ol/MapBrowserEvent~MapBrowserEvent Map browser event.
Returns:
false
to stop event propagation.
-
Activate or deactivate the interaction.
Name Type Description active
boolean Active.