Skip to content

Create simple images of NYC's 5 borough boundaries using leaflet and puppeteer

Notifications You must be signed in to change notification settings

chriswhong/boromoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boromoji

Create static images of NYC's 5 boroughs using leaflet and puppeteer

The Bronx Brooklyn Manhattan Staten Island Queens

How to Use

  • Install dependencies
$ yarn
  • Run make-boromoji.js
node make-boromoji.js
  • jpgs will appear in /output

How it works

Geojson files for NYC's 5 boroughs are stored in /data. When the script is run, it builds a simple web page for each, including javascript for a simple leaflet.js map, calling fitBounds() so the borough boundary will fill the map.

Then puppeteer loads each website into a 128x128 viewport and exports a jpg screenshot to /output.

About

Create simple images of NYC's 5 borough boundaries using leaflet and puppeteer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published