Simple tool for generating preview raster images for styles.
The tool generates 3 images:
thumbnail.png
-- 512x512, whole worldpreview-2.png
-- 640x360, image with zoom level 2 (centered on Zurich)preview-10.png
-- 640x360, image with zoom level 10 (centered on Zurich)custom.png
-- custom image (if specified in the second parameter)
docker run -v $(pwd):/data klokantech/thumbnail-gl {JSON_URL} [{CUSTOM_AREA_SPEC}]
docker run -v $(pwd):/data klokantech/thumbnail-gl https://maps.tilehosting.com/styles/topo/style.json?key=[key] "-x 8.235 -y 46.787 -z 7 -w 800 -h 600 -r 2"