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 coordinateol.Coordinate Coordinate for the overlay's position on the map. - Source:
- overlay.js, line 67
-
setElement
-
Parameters:
Name Type Description elementElement The DOM element for the overlay. - Source:
- overlay.js, line 76
-
setMap
-
Parameters:
Name Type Description mapol.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 positioningArray.<string> The positioning. - Source:
- overlay.js, line 138