wbkd / leaflet-mapshot

🌍 A simple script for taking automated screenshots from a Leaflet map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leaflet Mapshot

A script for generating automated screenshots of a local Leaflet map. We used it to create the video in this article https://interaktiv.morgenpost.de/mauerzeichnen-auswertung/.

How does it work?

When you run the script it uses puppeteer to make screenshots for every GeoJSON file that is under geojsons. You can adjust the config.json for changing tileLayer, zoom and center.

Usage

npm start

About

🌍 A simple script for taking automated screenshots from a Leaflet map

License:MIT License


Languages

Language:JavaScript 73.4%Language:HTML 26.6%