Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ lib/data/spatial/forest_types_ne
lib/data/spatial/forest_types_sg
lib/data/spatial/forest_types_sh
lib/data/spatial/forest_types_so
lib/data/spatial/forest_types_sz
lib/data/spatial/forest_types_tg
lib/data/spatial/forest_types_vd
lib/data/spatial/forest_types_zh
Expand Down
2 changes: 1 addition & 1 deletion lib/data/spatial/3-tile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _tile "forest_types"
_tile "silver_fir_areas"

echo "Joining tiles ..."
cd /data/spatial/tiles
cd /data/spatial/tree-app-tiles/tiles
tile-join --force --maximum-zoom=12 --no-tile-size-limit -e "tree" altitudinal_zones_1995.mbtiles altitudinal_zones_2085_dry.mbtiles altitudinal_zones_2085_less_dry.mbtiles cantonal_boundaries.mbtiles forest_ecoregions.mbtiles forest_types.mbtiles silver_fir_areas.mbtiles
rm altitudinal_zones_1995.mbtiles altitudinal_zones_2085_dry.mbtiles altitudinal_zones_2085_less_dry.mbtiles cantonal_boundaries.mbtiles forest_ecoregions.mbtiles forest_types.mbtiles silver_fir_areas.mbtiles
find tree -name '*.pbf' > tiles.txt
2 changes: 1 addition & 1 deletion lib/data/spatial/4-fonts.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
yarn run generate-mapbox-gl-fonts
mkdir -p data/spatial/tiles/fonts
cp -r _output/Roboto\ Regular data/spatial/tiles/fonts/Roboto\ Regular
cp -r _output/Roboto\ Regular data/spatial/tree-app-tiles/tiles/fonts/Roboto\ Regular
rm -r _output
1 change: 0 additions & 1 deletion lib/data/spatial/tiles/.gitignore

This file was deleted.

49 changes: 0 additions & 49 deletions lib/data/spatial/tiles/vercel.json

This file was deleted.

4 changes: 4 additions & 0 deletions lib/data/spatial/tree-app-tiles/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vercel
node_modules
tiles/*
dist
19 changes: 19 additions & 0 deletions lib/data/spatial/tree-app-tiles/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "hono-tile-server",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "tsx watch server.ts",
"start": "node dist/server.js",
"build": "tsc"
},
"dependencies": {
"@hono/node-server": "^1.11.0",
"hono": "^4.6.0"
},
"devDependencies": {
"@types/node": "^24.3.0",
"tsx": "^4.15.0",
"typescript": "^5.6.3"
}
}
Loading