Inspiration is drawn from this.
For this to work, you need a mapbox token (written into renderer/token.sh
) and a maptiler token (should replace {key}
inside of black_white.json
)
- install mapbox-map-image-export globally using npm
- command
export-map --help
should be working
- command
- specify your mapbox token in
renderer/token.sh
using syntax:
export MAPBOX_TOKEN="YOUR-MAPBOX-TOKEN"
- then run
renderer/render.sh
with parametersrun LAT,LONG RADIUS STYLE_JSON [debug]
LAT
andLONG
are the center coordinate in decimal degrees using pos./neg. numbers instead of N/E/S/WRADIUS
are in kilometersSTYLE_JSON
is the relative path to the map style to be used (created using maputnik)[debug]
optional parameter to openexport-map
in debug mode
- insert image into
Template.psd
If you need, you can create your own styles using Maputnik which can be used online or offline. Store the style as STYLE_NAME.json
.
Enjoy your final poster, that could look like this: