Add a script to capture an image of a map

This commit is contained in:
2024-08-17 23:03:47 +10:00
parent 0d2c42da82
commit 3718378545
4 changed files with 978 additions and 3 deletions

View File

@@ -10,4 +10,6 @@ To tell the page which council to load, add a query parameter to the URL eg. `?c
To automatically compile the `src.js` file after every edit, run `webpack-cli --mode development --watch` in this folder.
Changes to `dist/main.js` should be committed so that other users don't need to install node.
Changes to `dist/main.js` should be committed so that other users don't need to install node.
The `capture-map.js` script can be used to capture an image of the map. It accepts 4 arguments, the council name, width, height, and output path. For example `node .\capture-map.js brimbank 900 500 ../../spl-data/brimbank/map.jpg` would capture a map of Brimbank City Council and place a file named `map.jpg` in the `../../spl-data/brimbank/` folder.