Skip to content

Commit

Permalink
added railway layers
Browse files Browse the repository at this point in the history
  • Loading branch information
smellman committed Aug 24, 2024
1 parent 7c02aa6 commit f482ebe
Show file tree
Hide file tree
Showing 7 changed files with 273 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layers.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ layers = new Listing {
import("layers/highway-secondary-tertiary.pkl")
import("layers/highway-primary.pkl")
import("layers/highway-trunk.pkl")
import("layers/railway-transit.pkl")
import("layers/railway-transit-hatching.pkl")
import("layers/railway-service.pkl")
import("layers/railway-service-hatching.pkl")
import("layers/railway.pkl")
import("layers/railway-hatching.pkl")
}
50 changes: 50 additions & 0 deletions layers/railway-hatching.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
extends "extends/transportation.pkl"

id = "railway-hatching"
filter {
"all"
new {
"=="
"$type"
"LineString"
}
new {
"!has"
"service"
}
new {
"!in"
"brunnel"
"bridge"
"tunnel"
}
new {
"=="
"class"
"rail"
}
}
paint {
`line-color` = "#bbb"
`line-dasharray` {
0.2
8
}
`line-width` {
base = 1.4
stops {
new {
14.5
0
}
new {
15
3
}
new {
20
8
}
}
}
}
47 changes: 47 additions & 0 deletions layers/railway-service-hatching.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
extends "extends/transportation.pkl"

id = "railway-service-hatching"
filter {
"all"
new {
"=="
"$type"
"LineString"
}
new {
"=="
"class"
"rail"
}
new {
"has"
"service"
}
}
layout {
visibility = "visible"
}
paint {
`line-color` = "hsla(0, 0%, 73%, 0.68)"
`line-dasharray` {
0.2
8
}
`line-width` {
base = 1.4
stops {
new {
14.5
0
}
new {
15
2
}
new {
20
6
}
}
}
}
36 changes: 36 additions & 0 deletions layers/railway-service.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
extends "extends/transportation.pkl"

id = "railway-service"
filter {
"all"
new {
"=="
"$type"
"LineString"
}
new {
"=="
"class"
"rail"
}
new {
"has"
"service"
}
}
paint {
`line-color` = "hsla(0, 0%, 73%, 0.77)"
`line-width` {
base = 1.4
stops {
new {
14
0.4
}
new {
20
1
}
}
}
}
48 changes: 48 additions & 0 deletions layers/railway-transit-hatching.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
extends "extends/transportation.pkl"

id = "railway-transit-hatching"
filter {
"all"
new {
"=="
"$type"
"LineString"
}
new {
"=="
"class"
"transit"
}
new {
"!in"
"brunnel"
"tunnel"
}
}
layout {
visibility = "visible"
}
paint {
`line-color` = "hsla(0, 0%, 73%, 0.68)"
`line-dasharray` {
0.2
8
}
`line-width` {
base = 1.4
stops {
new {
14.5
0
}
new {
15
2
}
new {
20
6
}
}
}
}
40 changes: 40 additions & 0 deletions layers/railway-transit.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
extends "extends/transportation.pkl"

id = "railway-transit"
filter {
"all"
new {
"=="
"$type"
"LineString"
}
new {
"=="
"class"
"transit"
}
new {
"!in"
"brunnel"
"tunnel"
}
}
layout {
visibility = "visible"
}
paint {
`line-color` = "hsla(0, 0%, 73%, 0.77)"
`line-width` {
base = 1.4
stops {
new {
14
0.4
}
new {
20
1
}
}
}
}
46 changes: 46 additions & 0 deletions layers/railway.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
extends "extends/transportation.pkl"

id = "railway"
filter {
"all"
new {
"=="
"$type"
"LineString"
}
new {
"!has"
"service"
}
new {
"!in"
"brunnel"
"bridge"
"tunnel"
}
new {
"=="
"class"
"rail"
}
}
paint {
`line-color` = "#bbb"
`line-width` {
base = 1.4
stops {
new {
14
0.4
}
new {
15
0.75
}
new {
20
2
}
}
}
}

0 comments on commit f482ebe

Please sign in to comment.