Class: DragOverlay

ol.interaction. DragOverlay

Drag an overlay on the map


new DragOverlay(options)

Parameters:
Name Type Description
options any
Properties
Name Type Description
overlays ol.Overlay | Array.<ol.Overlay>

the overlays to drag

offset ol.Size

overlay offset, default [0,0]

Fires:
  • event:dragstart
  • event:dragging
  • event:dragend

Extends

  • ol.interaction.Pointer

Methods


addOverlay(ov)

Add an overlay to the interacton

Parameters:
Name Type Description
ov ol.Overlay

removeOverlay(ov)

Remove an overlay from the interacton

Parameters:
Name Type Description
ov ol.Overlay