Use thinner partial fills for buildings parts and indoor features (re: #6204)

This commit is contained in:
Quincy Morgan
2019-05-08 15:55:59 -04:00
parent fd8f460739
commit dcd9876fdf
2 changed files with 12 additions and 2 deletions

View File

@@ -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;

View File

@@ -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',
@@ -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; };
@@ -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;