X-GIS

Examples

Real .xgis samples.

Click any card to launch the running demo — pan, zoom, rotate, and inspect. Each card also carries a <> link to the underlying .xgis source on GitHub for copy-paste.

Start here

All examples

Basics

Single source, single layer — the smallest possible map.

PMTiles + MVT

Streaming vector tiles via PMTiles archives. Each MVT source-layer styles independently.

Data-driven styling

Bind feature properties to colors, sizes, and opacity through match(), filters, and gradients.

Lines & strokes

Stroke widths, dash arrays, line caps and joins, signed-distance-field rendering.

Symbols & points

Point glyphs from SVG path strings or built-in shapes, sized and colored from data.

Text labels

SDF text rendering — anchor strings to lon/lat from feature properties or imperatively from app code.

Animation

Time-driven property tweening declared via top-level `keyframes` blocks.

Zoom behavior

Zoom-conditional utilities and level-of-detail switching.

Interaction

Pointer events, hover state, selection.

Raster basemaps

XYZ tile URL templates as a base layer under vector content.

Geographic compositions

Multi-source compositions modeled after print cartography.

The full examples directory carries another ~60 fixture and reference-test files used by the e2e harness — useful for contributors digging into a specific renderer behavior, less so for learning the language.