# XWUIGISLegend

Map legend that derives its symbology from the live map rather than from a hand-maintained table: the active layers, the marker colours actually in use, the shape styles actually drawn, and the cluster badge when clustering is on. Attaches to an xwui-gis-map through the shared host contract using for="<hostId>", updates on every layer change, and reads correctly in light and dark themes. Explicit entries can be supplied to override derivation entirely.

## Basic Usage

A legend that reads the map. Nothing is hand-listed, so it cannot go stale.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A legend that reads the map. Nothing is hand-listed, so it cannot go stale.
```

## Explicit Entries

Hand-authored rows, including a graduated ramp, for symbology the component cannot see.

```example
file: examples/ExplicitEntries.ts
html: examples/ExplicitEntries.html
title: Explicit Entries
description: Hand-authored rows, including a graduated ramp, for symbology the component cannot see.
```

```api
```
