mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 17:14:04 +02:00
Support classing of aerialway and piste, and adjust line widths
(closes #5843)
This commit is contained in:
@@ -4,8 +4,8 @@ import { osmPavedTags } from '../osm/tags';
|
||||
|
||||
export function svgTagClasses() {
|
||||
var primaries = [
|
||||
'building', 'highway', 'railway', 'waterway', 'aeroway',
|
||||
'motorway', 'boundary', 'power', 'amenity', 'natural', 'landuse',
|
||||
'building', 'highway', 'railway', 'waterway', 'aeroway', 'aerialway',
|
||||
'piste:type', 'boundary', 'power', 'amenity', 'natural', 'landuse',
|
||||
'leisure', 'military', 'place', 'man_made', 'route', 'attraction'
|
||||
];
|
||||
var statuses = [
|
||||
@@ -59,6 +59,10 @@ export function svgTagClasses() {
|
||||
v = t[k];
|
||||
if (!v || v === 'no') continue;
|
||||
|
||||
if (k === 'piste:type') { // avoid a ':' in the class name
|
||||
k = 'piste';
|
||||
}
|
||||
|
||||
primary = k;
|
||||
if (statuses.indexOf(v) !== -1) { // e.g. `railway=abandoned`
|
||||
status = v;
|
||||
|
||||
Reference in New Issue
Block a user