Skip to content

Commit ef15563

Browse files
committed
fix(tiles): rebuild tiles with FR and SZ data, upgrade tile version
1 parent 43f2920 commit ef15563

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

lib/data/spatial/4-fonts.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
yarn run generate-mapbox-gl-fonts
1+
source ~/.nvm/nvm.sh
2+
nvm use 16 # generate-mapbox-gl-fonts needs node 16
3+
4+
yarn --ignore-engines run generate-mapbox-gl-fonts
25
mkdir -p data/spatial/tiles/fonts
36
cp -r _output/Roboto\ Regular data/spatial/tree-app-tiles/tiles/fonts/Roboto\ Regular
47
rm -r _output

lib/data/sql/import_data.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ SELECT
14001400
CREATE TABLE "forest_types_sz" (
14011401
gid serial,
14021402
"fid" float8,
1403-
"sz_einheit" varchar(80),
1403+
"sz einheit" varchar(80),
14041404
"nais" varchar(80),
14051405
"nais1" varchar(80),
14061406
"nais2" varchar(80),

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"data:treetypes:deploy": "vercel deploy --cwd ./data/treetypes",
1919
"data:spatial:export": "cd data && docker-compose exec db sh -c '/data/spatial/2-export.sh'",
2020
"data:spatial:tile": "cd data && docker-compose exec tippecanoe sh -c '/data/spatial/3-tile.sh'",
21-
"data:spatial:fonts": "./data/spatial/4-fonts.sh",
21+
"data:spatial:fonts": "bash ./data/spatial/4-fonts.sh",
2222
"data:spatial:deploy": "cd data/spatial/tree-app-tiles && pnpm install && pnpm build && vercel deploy --cwd .",
2323
"data:spatial:deploy:local": "cd data/spatial/tree-app-tiles && pnpm install && pnpm build && node dist/server.js",
2424
"data:export:csv": "node --experimental-json-modules export/src/export_csv.mjs",

sw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const OLD_SO_PDF_CACHES = Array.from(Array(currentSoPdfVersion).keys()).map(
3434
);
3535

3636
const tileCacheString = "tree-app-tiles-v"; // IMPORTANT: This string should NEVER be changed, otherwise the old caches will not be identifyable anymore
37-
const currentTileVersion = 25; // Current tile version, needs to be increased every time new tiles are deployed
37+
const currentTileVersion = 26; // Current tile version, needs to be increased every time new tiles are deployed
3838
const TILE_CACHE_NAME = `${tileCacheString}${currentTileVersion}`;
3939

4040
// Create an array of 'tree-app-tiles-v[1 - currentVersion]' strings for the caches to be removed

0 commit comments

Comments
 (0)