Skip to content

Commit

Permalink
Merge pull request #5392 from quincylvania/pipline-css
Browse files Browse the repository at this point in the history
Adds custom CSS to man_made=pipeline features
  • Loading branch information
bhousel authored Oct 10, 2018
2 parents 35d8143 + 3586451 commit b43d6a1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
26 changes: 22 additions & 4 deletions css/50_misc.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/* power */
/* power and pipeline */
.preset-icon .icon.tag-man_made-pipeline,
.preset-icon .icon.tag-power {
color: #939393;
fill: #939393;
}

/* power */

path.stroke.tag-power {
stroke: #939393;
stroke-width: 2;
Expand All @@ -13,6 +15,21 @@ path.casing.tag-power {
stroke: none;
}

/* pipeline */

path.stroke.tag-man_made-pipeline {
stroke: #CBD0D8;
stroke-linecap: butt;
stroke-width: 3;
stroke-dasharray: 80, 1.25;
}
path.casing.tag-man_made-pipeline {
stroke: #666;
stroke-width: 4.5;
}
.low-zoom path.stroke.tag-man_made-pipeline {
stroke-dasharray: 40, 1;
}

/* boundaries */
path.stroke.tag-boundary {
Expand Down Expand Up @@ -145,10 +162,12 @@ path.casing.tag-highway-bridleway.tag-bridge {


/* tunnels */
path.stroke.tag-tunnel {
path.stroke.tag-tunnel,
path.line.stroke.tag-location-underground {
stroke-opacity: 0.3;
}
path.casing.tag-tunnel {
path.casing.tag-tunnel,
path.line.casing.tag-location-underground {
stroke-opacity: 0.5;
stroke-linecap: butt;
stroke-dasharray: none;
Expand Down Expand Up @@ -325,4 +344,3 @@ path.stroke.tag-crossing.tag-crossing-zebra {
.low-zoom path.stroke.tag-crossing.tag-crossing-zebra {
stroke-dasharray: 3, 2;
}

2 changes: 1 addition & 1 deletion modules/svg/tag_classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function svgTagClasses() {
var secondaries = [
'oneway', 'bridge', 'tunnel', 'embankment', 'cutting', 'barrier',
'surface', 'tracktype', 'footway', 'crossing', 'service', 'sport',
'public_transport'
'public_transport', 'location'
];
var tagClassRe = /^tag-/;
var _tags = function(entity) { return entity.tags; };
Expand Down

0 comments on commit b43d6a1

Please sign in to comment.