Mapbox Storytelling
Mapbox Storytelling is a scroll-driven template for pairing narrative text with map camera moves — ideal for journalism, trip reports, and data explainers.
Source
- mapbox/storytelling (GitHub template)
- Mapbox Storytelling guide
How it works
- Fork/clone the storytelling template
- Edit
config.js— chapters withlocation,zoom,bearing,pitch, and HTML body - Host static files (GitHub Pages, Netlify, etc.)
- Mapbox GL JS animates the map as the reader scrolls each chapter
Structure
javascript
// config.js (conceptual)
chapters: [
{ id: 'intro', location: { center: [-74, 40.7], zoom: 10 }, ... },
{ id: 'chapter-2', ... }
]Requirements
- Mapbox access token (or MapLibre + compatible style for fully OSS path)
- Basic HTML/CSS comfort for chapter content