new Overlay
Parameters:
| Name | Type | Description |
|---|---|---|
overlayOptions |
ol.overlay.OverlayOptions | Overlay options. |
- Source:
- overlay.js, line 13
Methods
-
getElement
-
- Source:
- overlay.js, line 130
Returns:
The DOM element for the overlay.- Type
- Element
-
getMap
-
- Source:
- overlay.js, line 164
Returns:
Map.- Type
- ol.Map
-
setCoordinate
-
Parameters:
Name Type Description coordinateol.Coordinate Coordinate for the overlay's position on the map. - Source:
- overlay.js, line 104
-
setElement
-
Parameters:
Name Type Description elementElement The DOM element for the overlay. - Source:
- overlay.js, line 113
-
setMap
-
Parameters:
Name Type Description mapol.Map Map. - Source:
- overlay.js, line 138
-
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 positioningArray.<string> The positioning. - Source:
- overlay.js, line 174