# XWUIGISMap

Zero-dependency slippy map. Renders OSM-scheme raster tiles as DOM images with fractional, cursor-anchored zoom, draws polygons, polylines, rectangles and true-metre circles on a canvas overlay, clusters markers in screen space, and hosts a keyboard-operable drawing surface. Loads no third-party map library: window.L, maplibregl and mapboxgl all stay undefined. Acts as the IXWUIGISMapHost that xwui-gis-legend, xwui-gis-layer-panel, xwui-gis-basemap-picker, xwui-gis-search-box and xwui-gis-draw-toolbar attach to.

## Basic Usage

A keyless OpenStreetMap basemap with two pins. No API key, no map library, no window.L.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A keyless OpenStreetMap basemap with two pins. No API key, no map library, no window.L.
```

## Clustered

Two thousand listings collapsed into badges. Zoom past level 16 and they separate.

```example
file: examples/Clustered.ts
html: examples/Clustered.html
title: Clustered
description: Two thousand listings collapsed into badges. Zoom past level 16 and they separate.
```

## Draw And Filter

Draw a polygon and the listings outside it disappear. This is journey J-03 from the PRD, offline.

```example
file: examples/DrawAndFilter.ts
html: examples/DrawAndFilter.html
title: Draw And Filter
description: Draw a polygon and the listings outside it disappear. This is journey J-03 from the PRD, offline.
```

## Fully Offline

The whole family with no network at all: synthetic tiles, a mock geocoder, and every chrome component wired.

```example
file: examples/FullyOffline.ts
html: examples/FullyOffline.html
title: Fully Offline
description: The whole family with no network at all: synthetic tiles, a mock geocoder, and every chrome component wired.
```

```api
```
