Add vector data only mode (map none)
This commit is contained in:
parent
92ab599d75
commit
e936b0c35b
@ -7,6 +7,7 @@ var polyconf_show_districts = 4; /* Shown from polyconf_show_cities until this*/
|
|||||||
|
|
||||||
var dijkstraserv_base = "https://notsyncing.net/dijkstra/";
|
var dijkstraserv_base = "https://notsyncing.net/dijkstra/";
|
||||||
var wikiurl_base = "https://wiki.linux-forks.de/mediawiki/index.php/"
|
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({
|
var streetLabelsRenderer = new L.StreetLabels({
|
||||||
collisionFlg: true,
|
collisionFlg: true,
|
||||||
@ -171,7 +172,11 @@ function load_svg(name, url, active=1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function load_tiles(name, id) {
|
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*/,
|
maxZoom: 14 /*8*/,
|
||||||
maxNativeZoom: 6,
|
maxNativeZoom: 6,
|
||||||
minNativeZoom: 0,
|
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 (2020-04-09)", 'world-2020-04-09').addTo(mymap);
|
||||||
load_tiles("Satellite (2019-05-04, wrong coords)", 'world-2019-05-04');
|
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("All", "./geojson/all.json", "auto", "auto", 0);
|
||||||
load_geojson("Streets", "./geojson/streets.json", "street", "auto", 1, style_streets);
|
load_geojson("Streets", "./geojson/streets.json", "street", "auto", 1, style_streets);
|
||||||
|
Loading…
Reference in New Issue
Block a user