.q2w-control

Map control

Reusable map control buttons for zoom, reset, locate, and tools.

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-control">
  Map control content
</div>

Variants

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

Sub-elements

ClassPurpose
.q2w-controlRoot element for the map control component
.q2w-control__headOptional header/title region
.q2w-control__bodyMain component content region
.q2w-control__actionsOptional action group
← Button Search →