From f17bf1ebb0a23206bc37de93dfd49c7b254b6705 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 25 Apr 2020 16:43:55 +0200 Subject: Remove necessity for php tile resolution script The conversion script now generates a proper directory structure with z/y/x coords in the path. --- htdocs/mapscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'htdocs/mapscript.js') diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index d83b057..abe85a6 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -132,7 +132,7 @@ function load_svg(name, url, active=1) { } function load_tiles(name, id) { - var satellite = L.tileLayer('https://notsyncing.net/maps.linux-forks.de/tiles/?id={id}&z={z}&x={x}&y={y}', { + var satellite = L.tileLayer('https://notsyncing.net/maps.linux-forks.de/tiles/{id}/{z}/{y}/{x}.png', { maxZoom: 14 /*8*/, maxNativeZoom: 6, minNativeZoom: 0, -- cgit v1.2.3