diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index 9389c1f..87991ce 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -7,6 +7,7 @@ var polyconf_show_districts = 4; /* Shown from polyconf_show_cities until this*/ var dijkstraserv_base = "https://notsyncing.net/dijkstra/"; var wikiurl_base = "https://wiki.linux-forks.de/mediawiki/index.php/" +var tiles_base = "https://notsyncing.net/maps.linux-forks.de/tiles/" var streetLabelsRenderer = new L.StreetLabels({ collisionFlg: true, @@ -171,7 +172,11 @@ 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}/{z}/{y}/{x}.png', { + var url = ""; + if (name != "") { + url = tiles_base + '{id}/{z}/{y}/{x}.png'; + } + var satellite = L.tileLayer(url, { maxZoom: 14 /*8*/, maxNativeZoom: 6, minNativeZoom: 0, @@ -320,6 +325,7 @@ function load_geojson(name, url, geotype, iconcolor, active=1, style={}) { load_tiles("Satellite (2020-04-09)", 'world-2020-04-09').addTo(mymap); load_tiles("Satellite (2019-05-04, wrong coords)", 'world-2019-05-04'); +load_tiles("None", ''); load_geojson("All", "./geojson/all.json", "auto", "auto", 0); load_geojson("Streets", "./geojson/streets.json", "street", "auto", 1, style_streets);