.q2w-grad

Legend

Categorical, sequential, and diverging legends for thematic maps.

Preview

Land value
<100k>5M

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-grad">
  Legend content
</div>

Variants

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

Sub-elements

ClassPurpose
.q2w-gradRoot element for the legend component
.q2w-grad__headOptional header/title region
.q2w-grad__bodyMain component content region
.q2w-grad__actionsOptional action group
← Layer Popup →