Adds custom CSS styling for ferry routes

Closes #5414
This commit is contained in:
Quincy Morgan
2018-10-18 18:31:43 -07:00
parent 9b84f9622f
commit 38bfeb852d
2 changed files with 24 additions and 2 deletions

View File

@@ -4,7 +4,6 @@
fill: #77d3de;
}
.preset-icon .icon.iD-category-water,
.preset-icon .icon.tag-route-ferry,
.preset-icon .icon.tag-type-waterway,
.preset-icon .icon.tag-waterway {
color: #77d3de;
@@ -95,3 +94,26 @@ path.area.fill.tag-waterway-fuel {
fill: rgba(255, 255, 255, 0.3);
}
/* ferry routes */
.preset-icon .icon.tag-route-ferry {
color: #58a9ed;
fill: #fff;
}
path.shadow.tag-route-ferry {
stroke-width: 16;
}
path.stroke.tag-route-ferry {
stroke-width: 3;
stroke-linecap: butt;
stroke-dasharray: 12,8;
}
.low-zoom path.shadow.tag-route-ferry {
stroke-width: 12;
}
.low-zoom path.stroke.tag-route-ferry {
stroke-width: 2;
stroke-dasharray: 6,4;
}
path.stroke.tag-route-ferry {
stroke: #58a9ed;
}

View File

@@ -6,7 +6,7 @@ export function svgTagClasses() {
var primaries = [
'building', 'highway', 'railway', 'waterway', 'aeroway',
'motorway', 'boundary', 'power', 'amenity', 'natural', 'landuse',
'leisure', 'military', 'place', 'man_made'
'leisure', 'military', 'place', 'man_made', 'route'
];
var statuses = [
'proposed', 'construction', 'disused', 'abandoned', 'dismantled',