Skip to content

Commit

Permalink
Add railway class=transit
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper authored and jirik committed Jul 18, 2017
1 parent 59759c0 commit 8f71b7f
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions style.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,55 @@
"line-opacity": 1
}
},
{
"id": "tunnel_railway_transit",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 0,
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"==",
"brunnel",
"tunnel"
],
[
"==",
"class",
"transit"
]
],
"layout": {
"line-cap": "butt",
"line-join": "miter"
},
"paint": {
"line-color": "hsl(34, 12%, 66%)",
"line-opacity": {
"base": 1,
"stops": [
[
11,
0
],
[
16,
1
]
]
},
"line-dasharray": [
3,
3
]
}
},
{
"id": "building",
"type": "fill",
Expand Down Expand Up @@ -768,6 +817,44 @@
"line-offset": 0
}
},
{
"id": "railway_transit",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
[
"==",
"class",
"transit"
],
[
"!=",
"brunnel",
"tunnel"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"line-color": "hsl(34, 12%, 66%)",
"line-opacity": {
"base": 1,
"stops": [
[
11,
0
],
[
16,
1
]
]
}
}
},
{
"id": "railway",
"type": "line",
Expand Down

0 comments on commit 8f71b7f

Please sign in to comment.