Add adjustable maxzoom level, expand documentation
This commit is contained in:
parent
92cf623f93
commit
d35d3df5ec
3 changed files with 50 additions and 11 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue