Class: ol.overlay.Overlay

ol.overlay.Overlay

new Overlay

Parameters:
Name Type Description
overlayOptions ol.overlay.OverlayOptions Overlay options.
Source:
  • overlay.js, line 13

Methods

getElement

Source:
  • overlay.js, line 93
Returns:
The DOM element for the overlay.
Type
Element

getMap

Source:
  • overlay.js, line 128
Returns:
Map.
Type
ol.Map

setCoordinate

Parameters:
Name Type Description
coordinate ol.Coordinate Coordinate for the overlay's position on the map.
Source:
  • overlay.js, line 67

setElement

Parameters:
Name Type Description
element Element The DOM element for the overlay.
Source:
  • overlay.js, line 76

setMap

Parameters:
Name Type Description
map ol.Map Map.
Source:
  • overlay.js, line 101

setPositioning

Set the CSS properties to use for x- and y-positioning of the element. If not set, the default is {@code ['left', 'bottom']}.
Parameters:
Name Type Description
positioning Array.<string> The positioning.
Source:
  • overlay.js, line 138