mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 01:12:13 +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",
|
"type": "line",
|
||||||
"source": "openmaptiles",
|
"source": "openmaptiles",
|
||||||
"source-layer": "transportation",
|
"source-layer": "transportation",
|
||||||
"minzoom": 13,
|
"minzoom": 12,
|
||||||
"filter": [
|
"filter": [
|
||||||
"all",
|
"all",
|
||||||
[
|
[
|
||||||
@@ -1065,7 +1065,10 @@
|
|||||||
],
|
],
|
||||||
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
||||||
["match", ["get", "class"], ["path", "pedestrian"], true, false],
|
["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"},
|
"layout": {"line-join": "round"},
|
||||||
"paint": {
|
"paint": {
|
||||||
@@ -1099,7 +1102,8 @@
|
|||||||
],
|
],
|
||||||
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
||||||
["match", ["get", "class"], ["path", "pedestrian"], true, false],
|
["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"},
|
"layout": {"line-join": "round"},
|
||||||
"paint": {
|
"paint": {
|
||||||
@@ -1132,7 +1136,8 @@
|
|||||||
],
|
],
|
||||||
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true],
|
||||||
["match", ["get", "class"], ["path", "pedestrian"], true, false],
|
["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"},
|
"layout": {"line-join": "round"},
|
||||||
"paint": {
|
"paint": {
|
||||||
|
|||||||
Reference in new issue
Block a user