Skip to content

Commit

Permalink
Use thinner partial fills for buildings parts and indoor features (re:
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed May 8, 2019
1 parent fd8f460 commit dcd9876
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions css/70_fills.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
stroke-width: 60px;
pointer-events: none;
}
.fill-partial path.area.fill.tag-building_part {
stroke-width: 40px;
}
.fill-partial path.area.fill.tag-indoor {
stroke-width: 20px;
}
.mode-browse .fill-partial path.area.fill,
.mode-select .fill-partial path.area.fill {
pointer-events: visibleStroke;
Expand Down
8 changes: 6 additions & 2 deletions modules/svg/tag_classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export function svgTagClasses() {
var primaries = [
'building', 'highway', 'railway', 'waterway', 'aeroway', 'aerialway',
'piste:type', 'boundary', 'power', 'amenity', 'natural', 'landuse',
'leisure', 'military', 'place', 'man_made', 'route', 'attraction'
'leisure', 'military', 'place', 'man_made', 'route', 'attraction',
'building:part', 'indoor'
];
var statuses = [
'proposed', 'construction', 'disused', 'abandoned', 'dismantled',
Expand All @@ -15,7 +16,8 @@ export function svgTagClasses() {
var secondaries = [
'oneway', 'bridge', 'tunnel', 'embankment', 'cutting', 'barrier',
'surface', 'tracktype', 'footway', 'crossing', 'service', 'sport',
'public_transport', 'location', 'parking', 'golf', 'type', 'leisure', 'man_made'
'public_transport', 'location', 'parking', 'golf', 'type', 'leisure',
'man_made', 'indoor'
];
var _tags = function(entity) { return entity.tags; };

Expand Down Expand Up @@ -70,6 +72,8 @@ export function svgTagClasses() {

if (k === 'piste:type') { // avoid a ':' in the class name
k = 'piste';
} else if (k === 'building:part') { // avoid a ':' in the class name
k = 'building_part';
}

primary = k;
Expand Down

0 comments on commit dcd9876

Please sign in to comment.