Tooltip
Small map label for hover or always-on feature annotations.
Preview
Mekarjaya · 720k
Usage
Use this component inside a qgis2web Leaflet export after loading q2w-mapcss.css. Keep generated map JavaScript unchanged unless your workflow needs custom behavior.
<div class="q2w-tooltip"> Tooltip content </div>
Variants
| Pattern | Effect |
|---|---|
.q2w-tooltip | Default component shell |
.q2w-tooltip--compact | Denser layout for small maps |
.q2w-tooltip--floating | Floating map overlay style |
data-theme="dark" | Uses dark theme tokens automatically |
Sub-elements
| Class | Purpose |
|---|---|
.q2w-tooltip | Root element for the tooltip component |
.q2w-tooltip__head | Optional header/title region |
.q2w-tooltip__body | Main component content region |
.q2w-tooltip__actions | Optional action group |