Skip to main content

@elabs-ai/components-maps

14 pages

Token-driven MapLibre GL maps: MapCanvas, MapMarker, MapPopup, MapControls, MapRoute, MapArc, MapGeoJSON, MapClusterLayer — and custom plan maps (a floor plan, a plant layout, a carriage) drawn in their own units.

pnpm add @elabs-ai/components-maps

Highlights6

A few of the 14 pages here. Open a family below, or in the navigation, to see all of it.

Root MapLibre canvas — theme-aware basemap; the ref is the raw MapLibre Map. With plan it is a non-geographic plan instead (a floor, a plant, a carriage) and every layer inside speaks plan units.

7 examples

Clusters dense point data into count bubbles that split apart as you zoom in.

1 example

A GeoJSON line layer for routes/paths.

2 examples

Curved great-circle-style arcs between coordinate pairs (flight paths, network links).

2 examples

The keyboard and label layer of a plan: one real <button aria-pressed> per region over the WebGL canvas, with spatial arrow-key travel and a group mode for very large plans.

5 examples

MapLegend — the map's key: marker rows (items) and / or a colour ramp (scale, built with colorScaleFor from @elabs-ai/components-ui, so its colours are token references in every theme).

7 examples

Browse by family3

  • MapAnnotation · MapArc · MapCanvas · MapClusterLayer · MapGeoJSON · MapMarker · MapRoute

  • MapControls · MapInset · MapLegend · MapNorthArrow · MapScaleBar

  • Plans2 pages

    MapPlanImage · MapPlanOverlay