.q2w-compass

Compass

Orientation indicator for rotated maps and field workflows.

Preview

N

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-compass">
  Compass content
</div>

Variants

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

Sub-elements

ClassPurpose
.q2w-compassRoot element for the compass component
.q2w-compass__headOptional header/title region
.q2w-compass__bodyMain component content region
.q2w-compass__actionsOptional action group
← Basemap Layer →