Filter
Filter panel controls for thematic subsets and map queries.
Preview
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-filter"> Filter content </div>
Variants
| Pattern | Effect |
|---|---|
.q2w-filter | Default component shell |
.q2w-filter--compact | Denser layout for small maps |
.q2w-filter--floating | Floating map overlay style |
data-theme="dark" | Uses dark theme tokens automatically |
Sub-elements
| Class | Purpose |
|---|---|
.q2w-filter | Root element for the filter component |
.q2w-filter__head | Optional header/title region |
.q2w-filter__body | Main component content region |
.q2w-filter__actions | Optional action group |