.q2w-minimap

Minimap

Inset overview map that keeps the main viewport in context.

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-minimap">
  Minimap content
</div>

Variants

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

Sub-elements

ClassPurpose
.q2w-minimapRoot element for the minimap component
.q2w-minimap__headOptional header/title region
.q2w-minimap__bodyMain component content region
.q2w-minimap__actionsOptional action group
← Marker Modal →