Add basic background world map to country-specific maps to avoid "blank screen" when outside the selected map's coverage area

buefy-0.9
Manuel Kasper 2023-09-19 16:16:14 +02:00
rodzic a978ab19ba
commit 0c6d6f52c7
7 zmienionych plików z 224 dodań i 0 usunięć

Wyświetl plik

@ -32,6 +32,10 @@
"az": { "az": {
"type": "vector", "type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json" "url": "https://1.{mapServer}.map.sotl.as/data/az.json"
},
"openmaptiles": {
"type": "vector",
"url": "https://0.{mapServer}.map.sotl.as/data/osm-sotlas.json"
} }
}, },
"sprite": "https://sotl.as/sprites", "sprite": "https://sotl.as/sprites",
@ -44,6 +48,34 @@
"layout": {"visibility": "visible"}, "layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(255, 255, 255, 1)"} "paint": {"background-color": "rgba(255, 255, 255, 1)"}
}, },
{
"id": "water",
"type": "fill",
"metadata": {},
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(103, 166, 196, 0.2)"}
},
{
"id": "boundary_2",
"type": "line",
"metadata": {},
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["==", "maritime", 0]],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(136, 136, 136, 1)",
"line-opacity": 0.2,
"line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]}
}
},
{ {
"id": "basemapat", "id": "basemapat",
"type": "raster", "type": "raster",

Wyświetl plik

@ -32,6 +32,10 @@
"az": { "az": {
"type": "vector", "type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json" "url": "https://1.{mapServer}.map.sotl.as/data/az.json"
},
"openmaptiles": {
"type": "vector",
"url": "https://0.{mapServer}.map.sotl.as/data/osm-sotlas.json"
} }
}, },
"sprite": "https://sotl.as/sprites", "sprite": "https://sotl.as/sprites",
@ -44,6 +48,34 @@
"layout": {"visibility": "visible"}, "layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(255, 255, 255, 1)"} "paint": {"background-color": "rgba(255, 255, 255, 1)"}
}, },
{
"id": "water",
"type": "fill",
"metadata": {},
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(103, 166, 196, 0.2)"}
},
{
"id": "boundary_2",
"type": "line",
"metadata": {},
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["==", "maritime", 0]],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(136, 136, 136, 1)",
"line-opacity": 0.2,
"line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]}
}
},
{ {
"id": "caltopo", "id": "caltopo",
"type": "raster", "type": "raster",

Wyświetl plik

@ -32,6 +32,10 @@
"az": { "az": {
"type": "vector", "type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json" "url": "https://1.{mapServer}.map.sotl.as/data/az.json"
},
"openmaptiles": {
"type": "vector",
"url": "https://0.{mapServer}.map.sotl.as/data/osm-sotlas.json"
} }
}, },
"sprite": "https://sotl.as/sprites", "sprite": "https://sotl.as/sprites",
@ -44,6 +48,34 @@
"layout": {"visibility": "visible"}, "layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(255, 255, 255, 1)"} "paint": {"background-color": "rgba(255, 255, 255, 1)"}
}, },
{
"id": "water",
"type": "fill",
"metadata": {},
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(103, 166, 196, 0.2)"}
},
{
"id": "boundary_2",
"type": "line",
"metadata": {},
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["==", "maritime", 0]],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(136, 136, 136, 1)",
"line-opacity": 0.2,
"line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]}
}
},
{ {
"id": "norkart", "id": "norkart",
"type": "raster", "type": "raster",

Wyświetl plik

@ -89,6 +89,10 @@
"az": { "az": {
"type": "vector", "type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json" "url": "https://1.{mapServer}.map.sotl.as/data/az.json"
},
"openmaptiles": {
"type": "vector",
"url": "https://0.{mapServer}.map.sotl.as/data/osm-sotlas.json"
} }
}, },
"sprite": "https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/sprite/sprite", "sprite": "https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/sprite/sprite",
@ -105,6 +109,34 @@
"background-color": "rgba(255, 255, 255, 1)" "background-color": "rgba(255, 255, 255, 1)"
} }
}, },
{
"id": "water",
"type": "fill",
"metadata": {},
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(103, 166, 196, 0.2)"}
},
{
"id": "boundary_2",
"type": "line",
"metadata": {},
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["==", "maritime", 0]],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(136, 136, 136, 1)",
"line-opacity": 0.2,
"line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]}
}
},
{ {
"id": "relief_shading", "id": "relief_shading",
"type": "raster", "type": "raster",

Wyświetl plik

@ -86,6 +86,10 @@
"az": { "az": {
"type": "vector", "type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json" "url": "https://1.{mapServer}.map.sotl.as/data/az.json"
},
"openmaptiles": {
"type": "vector",
"url": "https://0.{mapServer}.map.sotl.as/data/osm-sotlas.json"
} }
}, },
"sprite": "https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/sprite/sprite", "sprite": "https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/sprite/sprite",
@ -98,6 +102,34 @@
"layout": {"visibility": "visible"}, "layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(255, 255, 255, 1)"} "paint": {"background-color": "rgba(255, 255, 255, 1)"}
}, },
{
"id": "water",
"type": "fill",
"metadata": {},
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(103, 166, 196, 0.2)"}
},
{
"id": "boundary_2",
"type": "line",
"metadata": {},
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["==", "maritime", 0]],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(136, 136, 136, 1)",
"line-opacity": 0.2,
"line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]}
}
},
{ {
"id": "swisstopo", "id": "swisstopo",
"type": "raster", "type": "raster",

Wyświetl plik

@ -86,6 +86,10 @@
"az": { "az": {
"type": "vector", "type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json" "url": "https://1.{mapServer}.map.sotl.as/data/az.json"
},
"openmaptiles": {
"type": "vector",
"url": "https://0.{mapServer}.map.sotl.as/data/osm-sotlas.json"
} }
}, },
"sprite": "https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/sprite/sprite", "sprite": "https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/sprite/sprite",
@ -98,6 +102,34 @@
"layout": {"visibility": "visible"}, "layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(255, 255, 255, 1)"} "paint": {"background-color": "rgba(255, 255, 255, 1)"}
}, },
{
"id": "water",
"type": "fill",
"metadata": {},
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(103, 166, 196, 0.2)"}
},
{
"id": "boundary_2",
"type": "line",
"metadata": {},
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["==", "maritime", 0]],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(136, 136, 136, 1)",
"line-opacity": 0.2,
"line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]}
}
},
{ {
"id": "swisstopo", "id": "swisstopo",
"type": "raster", "type": "raster",

Wyświetl plik

@ -32,6 +32,10 @@
"az": { "az": {
"type": "vector", "type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json" "url": "https://1.{mapServer}.map.sotl.as/data/az.json"
},
"openmaptiles": {
"type": "vector",
"url": "https://0.{mapServer}.map.sotl.as/data/osm-sotlas.json"
} }
}, },
"sprite": "https://sotl.as/sprites", "sprite": "https://sotl.as/sprites",
@ -44,6 +48,34 @@
"layout": {"visibility": "visible"}, "layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(255, 255, 255, 1)"} "paint": {"background-color": "rgba(255, 255, 255, 1)"}
}, },
{
"id": "water",
"type": "fill",
"metadata": {},
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all"],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(103, 166, 196, 0.2)"}
},
{
"id": "boundary_2",
"type": "line",
"metadata": {},
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["==", "maritime", 0]],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "rgba(136, 136, 136, 1)",
"line-opacity": 0.2,
"line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]}
}
},
{ {
"id": "toposvalbard", "id": "toposvalbard",
"type": "raster", "type": "raster",