Add adjustable maxzoom level, expand documentation

This commit is contained in:
Antonia 2024-09-13 22:34:50 +02:00
parent 92cf623f93
commit d35d3df5ec
3 changed files with 50 additions and 11 deletions

View file

@ -3,6 +3,7 @@
temp=$(mktemp -d)
zoom=$(jq '.maxZoom // 10' "$1/layers.json")
mkdir "$temp/data"
for i in "$1/data/"*
@ -11,7 +12,7 @@ do
done
tippecanoe -aN -z10 -o "$temp/strecken.pmtiles" $temp/*.json
tippecanoe -aN -z"$zoom" -o "$temp/strecken.pmtiles" $temp/*.json
mv $temp/strecken.pmtiles "$2"