OptionaladvancedRaw OpenLayers overlay properties. OlOverlayOptions override corresponding OverlayProperties, except for id and element.
warning Using OpenLayers options can create inconsistencies that lead to errors. The OpenLayers API can change with updates of OpenLayers.
OptionalariaRole of the HTML element that wraps the overlay's content.
OptionalclassCSS classes of the HTML element that wraps the overlay's content.
OptionalcontentDisplayed content of the overlay.
OptionaloffsetOffsets in pixels relative to the overlay`s coordinates on the map. The first element in the array is the horizontal offset.
OptionalpositionConfigures the position of the overlay.
The overlay is not rendered if position is undefined (the default).
See OverlayPosition for all supported position options.
The following shorthands are available:
Coordinate array can be used to specify a static coordinate on the map.undefined hides the overlay."follow-pointer" can be used as a shorthand to follow the user's cursor.OptionalpositioningPositioning of an overlay relative to its coordinates on the map.
OptionalstopDetermines if event propagation to the map viewport should be stopped.
By default stopEvent is true.
OptionaltagOptional, readonly tag that helps identifying the overlay instance.
Options that define the initial state of an overlay.