Tileserver-gl tests

A fast way to visually check for regressions. Each row shows: a test picture, the expected output, then the difference with pixelmatch.
Put zurich_switzerland.mbtiles in public/resources/gallery/ then run with:
docker build . && docker run --rm -it -p 8080:8080 $(docker build -q .) -V --config /usr/src/app/public/resources/gallery/config.json
This page is then served at http://0.0.0.0:8080/gallery/gallery.html

Interactive vector

Interactive raster

Loading...




More tests we could write:
- endpoint /styles/{id}/static/{minx},{miny},{maxx},{maxy}/{width}x{height}[@2x].{format} (area-based)
- arg latlng - indicates coordinates are in lat,lng
- padding
- border + borderwidth
- fill|stroke|width global vs local