.q2w-tooltip

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

PatternEffect
.q2w-tooltipDefault component shell
.q2w-tooltip--compactDenser layout for small maps
.q2w-tooltip--floatingFloating map overlay style
data-theme="dark"Uses dark theme tokens automatically

Sub-elements

ClassPurpose
.q2w-tooltipRoot element for the tooltip component
.q2w-tooltip__headOptional header/title region
.q2w-tooltip__bodyMain component content region
.q2w-tooltip__actionsOptional action group
← Popup Marker →