Skip to content

OlOverlay

OlOverlay(props): Element

Defined in: src/ol-overlay-component.tsx:44

OpenLayers Overlay component for displaying HTML elements anchored to map coordinates. Useful for popups, tooltips, and custom markers.

OlOverlayProps

All OpenLayers OverlayOptions plus React-specific props

Element

<OlMap>
<OlOverlay position={[0, 0]} className="popup">
<div>Popup content</div>
</OlOverlay>
</OlMap>