Skip to content

Commit 5c7432b

Browse files
authored
Add rendering for roller_coaster=track and roller_coaster=support (#9891)
1 parent bb17d5c commit 5c7432b

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

css/50_misc.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ path.line.shadow.tag-attraction-water_slide,
66
path.line.shadow.tag-golf-cartpath,
77
path.line.shadow.tag-man_made-pipeline,
88
path.line.shadow.tag-natural-tree_row,
9+
path.line.shadow.tag-roller_coaster-track,
10+
path.line.shadow.tag-roller_coaster-support,
911
path.line.shadow.tag-piste {
1012
stroke-width: 16;
1113
}
@@ -15,6 +17,8 @@ path.line.casing.tag-attraction-water_slide,
1517
path.line.casing.tag-golf-cartpath,
1618
path.line.casing.tag-man_made-pipeline,
1719
path.line.casing.tag-natural-tree_row,
20+
path.line.casing.tag-roller_coaster-track,
21+
path.line.casing.tag-roller_coaster-support,
1822
path.line.casing.tag-piste {
1923
stroke-width: 7;
2024
}
@@ -24,6 +28,8 @@ path.line.stroke.tag-attraction-water_slide,
2428
path.line.stroke.tag-golf-cartpath,
2529
path.line.stroke.tag-man_made-pipeline,
2630
path.line.stroke.tag-natural-tree_row,
31+
path.line.stroke.tag-roller_coaster-track,
32+
path.line.stroke.tag-roller_coaster-support,
2733
path.line.stroke.tag-piste {
2834
stroke-width: 5;
2935
}
@@ -34,6 +40,8 @@ path.line.stroke.tag-piste {
3440
.low-zoom path.line.shadow.tag-golf-cartpath,
3541
.low-zoom path.line.shadow.tag-man_made-pipeline,
3642
.low-zoom path.line.shadow.tag-natural-tree_row,
43+
.low-zoom path.line.shadow.tag-roller_coaster-track,
44+
.low-zoom path.line.shadow.tag-roller_coaster-support,
3745
.low-zoom path.line.shadow.tag-piste {
3846
stroke-width: 12;
3947
}
@@ -43,6 +51,8 @@ path.line.stroke.tag-piste {
4351
.low-zoom path.line.casing.tag-golf-cartpath,
4452
.low-zoom path.line.casing.tag-man_made-pipeline,
4553
.low-zoom path.line.casing.tag-natural-tree_row,
54+
.low-zoom path.line.casing.tag-roller_coaster-track,
55+
.low-zoom path.line.casing.tag-roller_coaster-support,
4656
.low-zoom path.line.casing.tag-piste {
4757
stroke-width: 5;
4858
}
@@ -52,6 +62,8 @@ path.line.stroke.tag-piste {
5262
.low-zoom path.line.stroke.tag-golf-cartpath,
5363
.low-zoom path.line.stroke.tag-man_made-pipeline,
5464
.low-zoom path.line.stroke.tag-natural-tree_row,
65+
.low-zoom path.line.stroke.tag-roller_coaster-track,
66+
.low-zoom path.line.stroke.tag-roller_coaster-support,
5567
.low-zoom path.line.stroke.tag-piste {
5668
stroke-width: 3;
5769
}
@@ -117,6 +129,23 @@ path.line.casing.tag-attraction-water_slide {
117129
stroke: #3d6c71;
118130
}
119131

132+
path.line.stroke.tag-roller_coaster-track {
133+
stroke: #dddddd;
134+
stroke-width: 3;
135+
stroke-dasharray: 5, 1;
136+
stroke-linecap: butt;
137+
}
138+
path.line.casing.tag-roller_coaster-track {
139+
stroke: #707070;
140+
}
141+
142+
path.line.stroke.tag-roller_coaster-support {
143+
stroke: #707070;
144+
}
145+
path.line.casing.tag-roller_coaster-support {
146+
visibility: hidden;
147+
}
148+
120149

121150
/* golf cartpaths (like service roads) */
122151
.preset-icon .icon.tag-golf-cartpath {

modules/svg/tag_classes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function svgTagClasses() {
77
'building', 'highway', 'railway', 'waterway', 'aeroway', 'aerialway',
88
'piste:type', 'boundary', 'power', 'amenity', 'natural', 'landuse',
99
'leisure', 'military', 'place', 'man_made', 'route', 'attraction',
10-
'building:part', 'indoor'
10+
'roller_coaster', 'building:part', 'indoor'
1111
];
1212
var statuses = Object.keys(osmLifecyclePrefixes);
1313
var secondaries = [

0 commit comments

Comments
 (0)