Skip to content

Choose your path

maplibre-yaml draws a web map from a YAML file: you describe the map, its data and its styling, and a script on the page does the rest. Pick the row that matches what you want to make. Each one says where to start, what to read next, and where to look things up. New to the library? Read What is maplibre-yaml? first.

The fastest way to see what a map document does is the playground: edit a map in the browser and watch it change as you type, with nothing to install or save. Mistakes are explained where you make them. When you like the map, download it as a folder that works, or share it as a link.

One HTML file and one YAML file, loaded from a CDN. Nothing to install and no build step; any static host, GitHub Pages included, can publish it.

An Astro site with a map on any page, published by GitHub Actions on every push.

A Vite + React app (or Next.js) that installs the element from npm and renders <ml-map src="/map.yaml"> in a component.

A Vite project, or a Vue or Svelte app, that installs packages from npm and builds the page.

A map that moves as the reader scrolls through chapters of text and images (often called scrollytelling).

A choropleth, graduated circles or a category map: colour or size each feature by one of its values, with a legend made for you.

A dataset too big for one GeoJSON file, imagery or elevation, or a basemap you host yourself: PMTiles, FlatGeobuf, GeoParquet and Cloud Optimized GeoTIFF files, read in parts straight from a static host.

A map document’s layers are MapLibre style layers: paint:, layout:, filter: and expressions follow the style spec unchanged. What maplibre-yaml adds is data loading, popups, legends, controls and stories, written in the same file.

Every key a map document or story file takes, with its type and default, is in the YAML reference. The <ml-map> and <ml-scrollytelling> attributes, events and styling hooks are in Elements, and the command-line tool’s commands are in the CLI reference.

A blank map, an error card, a notice on the map, or a map that works on your computer but not once published.