From 24290ef21702a3967c99e2c5b52f5a99aad0eb74 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 1 Mar 2017 20:48:02 -0500 Subject: [PATCH] Add preset for landuse=railway (closes #3853) --- css/25_areas.css | 5 ++++- data/presets.yaml | 5 +++++ data/presets/presets.json | 18 ++++++++++++++++++ data/presets/presets/landuse/railway.json | 18 ++++++++++++++++++ data/taginfo.json | 4 ++++ dist/locales/en.json | 4 ++++ 6 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 data/presets/presets/landuse/railway.json diff --git a/css/25_areas.css b/css/25_areas.css index 0676216ced..0fddeb7068 100644 --- a/css/25_areas.css +++ b/css/25_areas.css @@ -157,17 +157,20 @@ path.fill.tag-power-plant { path.stroke.tag-natural-bare_rock, path.stroke.tag-natural-scree, +path.stroke.tag-landuse-railway, path.stroke.tag-landuse-quarry { stroke: rgb(166, 149, 123); } path.fill.tag-natural-bare_rock, path.fill.tag-natural-scree, +path.fill.tag-landuse-railway, path.fill.tag-landuse-quarry { stroke: rgba(166, 149, 123, 0.2); fill: rgba(166, 149, 123, 0.2); } .preset-icon-fill-area.tag-natural-bare_rock, .preset-icon-fill-area.tag-natural-scree, +.preset-icon-fill-area.tag-landuse-railway, .preset-icon-fill-area.tag-landuse-quarry { border-color: rgb(166, 149, 123); background-color: rgba(166, 149, 123, 0.2); @@ -281,7 +284,7 @@ path.fill.tag-landuse-farmyard { fill: rgba(245, 220, 186, 0.3); } .preset-icon-fill-area.tag-landuse-farmyard { - border-color: rgb(245, 220, 186); + border-color: rgb(226, 177, 111); background: rgba(245, 220, 186, 0.3); } diff --git a/data/presets.yaml b/data/presets.yaml index 2803bd0d89..7636b87aa3 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -2847,6 +2847,11 @@ en: # landuse=quarry name: Quarry terms: '' + landuse/railway: + # landuse=railway + name: Railway Corridor + # 'terms: rail,train,track' + terms: '' landuse/recreation_ground: # landuse=recreation_ground name: Recreation Ground diff --git a/data/presets/presets.json b/data/presets/presets.json index bcf86f4c0d..28ce2cc8c6 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -6602,6 +6602,24 @@ "terms": [], "name": "Quarry" }, + "landuse/railway": { + "icon": "rail", + "fields": [ + "operator" + ], + "geometry": [ + "area" + ], + "tags": { + "landuse": "railway" + }, + "terms": [ + "rail", + "train", + "track" + ], + "name": "Railway Corridor" + }, "landuse/recreation_ground": { "icon": "pitch", "geometry": [ diff --git a/data/presets/presets/landuse/railway.json b/data/presets/presets/landuse/railway.json new file mode 100644 index 0000000000..0685309398 --- /dev/null +++ b/data/presets/presets/landuse/railway.json @@ -0,0 +1,18 @@ +{ + "icon": "rail", + "fields": [ + "operator" + ], + "geometry": [ + "area" + ], + "tags": { + "landuse": "railway" + }, + "terms": [ + "rail", + "train", + "track" + ], + "name": "Railway Corridor" +} diff --git a/data/taginfo.json b/data/taginfo.json index f6f54cc57e..5543c5dd6e 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -1412,6 +1412,10 @@ "key": "landuse", "value": "quarry" }, + { + "key": "landuse", + "value": "railway" + }, { "key": "landuse", "value": "recreation_ground" diff --git a/dist/locales/en.json b/dist/locales/en.json index ee25cd0dc8..dbfee19023 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -3250,6 +3250,10 @@ "name": "Quarry", "terms": "" }, + "landuse/railway": { + "name": "Railway Corridor", + "terms": "rail,train,track" + }, "landuse/recreation_ground": { "name": "Recreation Ground", "terms": "playing fields"