skip to content

Map (Maplibre)

Use the Maplibre Map component to show the user geographic information with Maplibre. Unlike Leaflet.js, Maplibre supports interactive layers when displaying pmtiles. However, it is a slightly larger library.

An example of a maplibre map in the wild:

Light theme

Dark theme

Invoke the dark theme on any component by applying class="ds-dark" to a container element.

Here’s a demo:
    <div id="map" class="ds-map-maplibre"></div>