mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-05-27 02:25:10 +00:00
borders
This commit is contained in:
@@ -1294,7 +1294,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "boundary_3",
|
"id": "boundary_3_casing",
|
||||||
"type": "line",
|
"type": "line",
|
||||||
"source": "openmaptiles",
|
"source": "openmaptiles",
|
||||||
"source-layer": "boundary",
|
"source-layer": "boundary",
|
||||||
@@ -1310,10 +1310,51 @@
|
|||||||
],
|
],
|
||||||
"paint": {
|
"paint": {
|
||||||
"line-color": "hsl(0,0%,70%)",
|
"line-color": "hsl(0,0%,70%)",
|
||||||
|
"line-opacity": 0.5,
|
||||||
|
"line-width": ["interpolate", ["linear", 1], ["zoom"], 7, 1, 11, 2]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "boundary_3",
|
||||||
|
"type": "line",
|
||||||
|
"source": "openmaptiles",
|
||||||
|
"source-layer": "boundary",
|
||||||
|
"minzoom": 5,
|
||||||
|
"filter": [
|
||||||
|
"all",
|
||||||
|
["==", ["typeof", ["get", "admin_level"]], "number"],
|
||||||
|
[">=", ["get", "admin_level"], 3],
|
||||||
|
["<=", ["get", "admin_level"], 6],
|
||||||
|
["!=", ["get", "maritime"], 1],
|
||||||
|
["!=", ["get", "disputed"], 1],
|
||||||
|
["!", ["has", "claimed_by"]]
|
||||||
|
],
|
||||||
|
"paint": {
|
||||||
|
"line-color": "#fff",
|
||||||
|
"line-opacity": 0.5,
|
||||||
"line-dasharray": [1, 1],
|
"line-dasharray": [1, 1],
|
||||||
"line-width": ["interpolate", ["linear", 1], ["zoom"], 7, 1, 11, 2]
|
"line-width": ["interpolate", ["linear", 1], ["zoom"], 7, 1, 11, 2]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "boundary_2_casing",
|
||||||
|
"type": "line",
|
||||||
|
"source": "openmaptiles",
|
||||||
|
"source-layer": "boundary",
|
||||||
|
"filter": [
|
||||||
|
"all",
|
||||||
|
["==", ["get", "admin_level"], 2],
|
||||||
|
["!=", ["get", "maritime"], 1],
|
||||||
|
["!=", ["get", "disputed"], 1],
|
||||||
|
["!", ["has", "claimed_by"]]
|
||||||
|
],
|
||||||
|
"layout": {"line-cap": "round", "line-join": "round"},
|
||||||
|
"paint": {
|
||||||
|
"line-color": "hsl(248,1%,41%)",
|
||||||
|
"line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 8, 0.5],
|
||||||
|
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 2, 5, 2.4, 12, 6]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "boundary_2",
|
"id": "boundary_2",
|
||||||
"type": "line",
|
"type": "line",
|
||||||
@@ -1328,11 +1369,28 @@
|
|||||||
],
|
],
|
||||||
"layout": {"line-cap": "round", "line-join": "round"},
|
"layout": {"line-cap": "round", "line-join": "round"},
|
||||||
"paint": {
|
"paint": {
|
||||||
"line-color": "hsl(248,1%,41%)",
|
"line-color": "#fff",
|
||||||
"line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 4, 1],
|
"line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 8, 0.5],
|
||||||
|
"line-dasharray": [3, 3, 1, 3],
|
||||||
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "boundary_disputed_casing",
|
||||||
|
"type": "line",
|
||||||
|
"source": "openmaptiles",
|
||||||
|
"source-layer": "boundary",
|
||||||
|
"filter": [
|
||||||
|
"all",
|
||||||
|
["!=", ["get", "maritime"], 1],
|
||||||
|
["==", ["get", "disputed"], 1]
|
||||||
|
],
|
||||||
|
"paint": {
|
||||||
|
"line-color": "hsl(248,1%,41%)",
|
||||||
|
"line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 8, 0.5],
|
||||||
|
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 2, 5, 2.4, 12, 6]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "boundary_disputed",
|
"id": "boundary_disputed",
|
||||||
"type": "line",
|
"type": "line",
|
||||||
@@ -1344,7 +1402,8 @@
|
|||||||
["==", ["get", "disputed"], 1]
|
["==", ["get", "disputed"], 1]
|
||||||
],
|
],
|
||||||
"paint": {
|
"paint": {
|
||||||
"line-color": "hsl(248,1%,41%)",
|
"line-color": "#fff",
|
||||||
|
"line-opacity": 0.5,
|
||||||
"line-dasharray": [1, 2],
|
"line-dasharray": [1, 2],
|
||||||
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user