mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-17 16:42:28 +00:00
different colors depending on surface
This commit is contained in:
1 parent
668b0f6b23
commit
5a8f93e225
1 file changed
+9
-4
@@ -1053,7 +1053,7 @@
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "transportation",
|
||||
"minzoom": 13,
|
||||
"minzoom": 12,
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
@@ -1065,7 +1065,10 @@
|
||||
],
|
||||
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
||||
["match", ["get", "class"], ["path", "pedestrian"], true, false],
|
||||
["match", ["get", "subclass"], ["path", "footway"], false, true]
|
||||
["!", ["all",
|
||||
["match", ["get", "subclass"], ["path", "footway"], true, false],
|
||||
["match", ["get", "surface"], ["unpaved"], true, false]
|
||||
]]
|
||||
],
|
||||
"layout": {"line-join": "round"},
|
||||
"paint": {
|
||||
@@ -1099,7 +1102,8 @@
|
||||
],
|
||||
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
||||
["match", ["get", "class"], ["path", "pedestrian"], true, false],
|
||||
["match", ["get", "subclass"], ["path", "footway"], true, false]
|
||||
["match", ["get", "subclass"], ["path", "footway"], true, false],
|
||||
["match", ["get", "surface"], ["unpaved"], true, false]
|
||||
],
|
||||
"layout": {"line-join": "round"},
|
||||
"paint": {
|
||||
@@ -1132,7 +1136,8 @@
|
||||
],
|
||||
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
||||
["match", ["get", "class"], ["path", "pedestrian"], true, false],
|
||||
["match", ["get", "subclass"], ["path", "footway"], true, false]
|
||||
["match", ["get", "subclass"], ["path", "footway"], true, false],
|
||||
["match", ["get", "surface"], ["unpaved"], true, false]
|
||||
],
|
||||
"layout": {"line-join": "round"},
|
||||
"paint": {
|
||||
|
||||
Reference in new issue
Block a user