mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-05-27 02:25:10 +00:00
different colors depending on surface
This commit is contained in:
@@ -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