Leaflet

A quarto shortcode extension to add interactive Leaflet maps

A Quarto shortcode extension to embed interactive Leaflet maps in HTML and revealjs formats.

Features

  • πŸ—ΊοΈ Interactive maps with OpenStreetMap tiles (or any custom tile provider)
  • πŸ“ Markers with popups, tooltips, and custom icons
  • 🎨 Font Awesome and custom image icon support for markers
  • πŸ”§ Arbitrary Leaflet options passthrough β€” any L.map() option just works
  • πŸ“ Two input modes: YAML metadata or inline shortcode arguments

Install

  • Requires Quarto >= 1.4.0

  • In the root of the quarto project, run in terminal:

    quarto add royfrancis/quarto-leaflet

This will install the extension under the _extensions subdirectory. See the Usage page for details. See the repo README for full list of arguments.