diff options
author | Markus Koch <markus@notsyncing.net> | 2020-05-06 17:42:48 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-05-06 17:42:48 +0200 |
commit | e936b0c35b704627ec08c6205c7d7b060c866f08 (patch) | |
tree | cb67ae7fec4c7a5d7ba9d50b9c18f6a45b6c7bc8 | |
parent | 92ab599d7516a13075d546171756cf9aae3124a9 (diff) | |
download | lifomapserver-e936b0c35b704627ec08c6205c7d7b060c866f08.tar.gz lifomapserver-e936b0c35b704627ec08c6205c7d7b060c866f08.tar.bz2 lifomapserver-e936b0c35b704627ec08c6205c7d7b060c866f08.zip |
Add vector data only mode (map none)
-rw-r--r-- | htdocs/mapscript.js | 8 |
1 files changed, 7 insertions, 1 deletions
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); |