Skip to content

Commit 1040b02

Browse files
author
Vincent van der Wal
committed
switch to 30m resolution
1 parent 066a072 commit 1040b02

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ if (mapContainer) {
210210
map.addSource('rasterDem', {
211211
type: 'raster-dem',
212212
tiles: [
213-
'https://mbtiles.servert.nl/services/copernicus-90m-terrain/tiles/{z}/{x}/{y}.png'
213+
'https://mbtiles.servert.nl/services/copernicus-30m-terrain/tiles/{z}/{x}/{y}.png'
214214
],
215215
tileSize: 256,
216-
maxzoom: 10
216+
maxzoom: 11
217217
});
218218

219219
map.addLayer(

src/worker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ const drawIcon = (
142142
const lat = tile2lat(y + iCenter / TILE_SIZE, z);
143143
const lon = tile2lon(x + jCenter / TILE_SIZE, z);
144144

145-
let indCenter = jCenter + iCenter * TILE_SIZE;
146-
147145
const { index, xFraction, yFraction } = getIndexAndFractions(
148146
lat,
149147
lon,

0 commit comments

Comments
 (0)