kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Add basic background world map to country-specific maps to avoid "blank screen" when outside the selected map's coverage area
rodzic
a978ab19ba
commit
0c6d6f52c7
|
@ -32,6 +32,10 @@
|
|||
"az": {
|
||||
"type": "vector",
|
||||
"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",
|
||||
|
@ -44,6 +48,34 @@
|
|||
"layout": {"visibility": "visible"},
|
||||
"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",
|
||||
"type": "raster",
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
"az": {
|
||||
"type": "vector",
|
||||
"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",
|
||||
|
@ -44,6 +48,34 @@
|
|||
"layout": {"visibility": "visible"},
|
||||
"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",
|
||||
"type": "raster",
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
"az": {
|
||||
"type": "vector",
|
||||
"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",
|
||||
|
@ -44,6 +48,34 @@
|
|||
"layout": {"visibility": "visible"},
|
||||
"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",
|
||||
"type": "raster",
|
||||
|
|
|
@ -89,6 +89,10 @@
|
|||
"az": {
|
||||
"type": "vector",
|
||||
"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",
|
||||
|
@ -105,6 +109,34 @@
|
|||
"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",
|
||||
"type": "raster",
|
||||
|
|
|
@ -86,6 +86,10 @@
|
|||
"az": {
|
||||
"type": "vector",
|
||||
"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",
|
||||
|
@ -98,6 +102,34 @@
|
|||
"layout": {"visibility": "visible"},
|
||||
"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",
|
||||
"type": "raster",
|
||||
|
|
|
@ -86,6 +86,10 @@
|
|||
"az": {
|
||||
"type": "vector",
|
||||
"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",
|
||||
|
@ -98,6 +102,34 @@
|
|||
"layout": {"visibility": "visible"},
|
||||
"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",
|
||||
"type": "raster",
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
"az": {
|
||||
"type": "vector",
|
||||
"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",
|
||||
|
@ -44,6 +48,34 @@
|
|||
"layout": {"visibility": "visible"},
|
||||
"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",
|
||||
"type": "raster",
|
||||
|
|
Ładowanie…
Reference in New Issue