Search
Search field for geocoding, feature lookup, and layer filtering.
Preview
⌕
1 result · ZNT-021
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-search"> Search content </div>
Variants
| Pattern | Effect |
|---|---|
.q2w-search | Default component shell |
.q2w-search--compact | Denser layout for small maps |
.q2w-search--floating | Floating map overlay style |
data-theme="dark" | Uses dark theme tokens automatically |
Sub-elements
| Class | Purpose |
|---|---|
.q2w-search | Root element for the search component |
.q2w-search__head | Optional header/title region |
.q2w-search__body | Main component content region |
.q2w-search__actions | Optional action group |