Skip to content

Maps written in Markdown

Récit maps draw a map from a line of Markdown. A ::map sits in any scene of any format; an atlas tells a whole story one map view per scene, read by scrolling while the camera moves from one view to the next. Everything is drawn at build time from the Natural Earth data shipped with @recit/geo: the page makes no request to a tile server, a geocoder or a font service. The atlas below is one, compiled from examples/atlas-tour; scroll it, or focus it and use the arrow keys.

Lorem TourOpen fullscreen
Map: Lorem ipsumJerseyGuernseyUnited KingdomSwitzerlandSpainNetherlandsMonacoLuxembourgLiechtensteinItalyGermanyFranceBelgiumAustriaAndorra

Made with Natural Earth

Lorem ipsum

Dolor sit amet, consectetur adipiscing elit. Scroll, or use the arrow keys: the map stays, the camera moves.

Lorem in Paris

Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

From Lorem to Ipsum

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.

Dolor and Sit

Duis aute irure dolor in reprehenderit in voluptate velit esse.

The Lorem zone

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.

The Markdown source of this atlas
examples/atlas-tour/atlas-tour.story.md
--- title: Lorem Tour description: A Lorem tour of France in five views, read by scrolling, without any network request. format: atlas lang: en projection: conic-conformal layout: side --- --- id=start camera=FR # Lorem ipsum Dolor sit amet, consectetur adipiscing elit. Scroll, or use the arrow keys: the map stays, the camera moves. --- id=paris camera=[1.4,48.4,3.3,49.3] duration=4s ## Lorem in Paris Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ::marker{lat=48.8566 lon=2.3522 label="Lorem"} --- id=route camera=FR ## From Lorem to Ipsum Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris. ::marker{lat=48.8566 lon=2.3522 label="Lorem"} ::marker{lat=45.764 lon=4.8357 label="Ipsum"} ::route{from="Lorem" to="Ipsum" reveal=draw} --- id=south center=43.6,3.9 zoom=5 duration=5s ## Dolor and Sit Duis aute irure dolor in reprehenderit in voluptate velit esse. ::marker{lat=43.6047 lon=1.4442 label="Sit"} ::marker{lat=43.2965 lon=5.3698 label="Dolor"} ::route{from="Sit" to="Dolor" style=dashed reveal=draw} --- id=zone camera=FR ## The Lorem zone Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia. ::area{src="zones/lorem.geojson" label="Lorem zone" reveal=fade} :::notes Lorem ipsum notes for the presenter: the zone is invented. :::

What maps give you

Start an atlas

  1. Write the views

    2 min

    An atlas is a story with format: atlas; each scene names its view with camera=: a country code, world, an extent or a center and a zoom.

    MarkdownMarkdown
    --- id=start camera=FR # Lorem ipsum --- id=paris camera=[1.4,48.4,3.3,49.3] ## Lorem in Paris ::marker{lat=48.8566 lon=2.3522 label="Lorem"}
  2. Read it

    1 min

    Start from the template, then publish it in a Récit site with @recit/site-stories.

    TerminalBash
    cp -r examples/atlas-tour my-atlas

The syntax is specified on docs.recit.dev, and the block on Writing › Maps.