Skip to content

Commit

Permalink
Add preset for landuse=railway
Browse files Browse the repository at this point in the history
(closes #3853)
  • Loading branch information
bhousel committed Mar 2, 2017
1 parent 713226f commit 24290ef
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 1 deletion.
5 changes: 4 additions & 1 deletion css/25_areas.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down
5 changes: 5 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2847,6 +2847,11 @@ en:
# landuse=quarry
name: Quarry
terms: '<translate with synonyms or related terms for ''Quarry'', separated by commas>'
landuse/railway:
# landuse=railway
name: Railway Corridor
# 'terms: rail,train,track'
terms: '<translate with synonyms or related terms for ''Railway Corridor'', separated by commas>'
landuse/recreation_ground:
# landuse=recreation_ground
name: Recreation Ground
Expand Down
18 changes: 18 additions & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
18 changes: 18 additions & 0 deletions data/presets/presets/landuse/railway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"icon": "rail",
"fields": [
"operator"
],
"geometry": [
"area"
],
"tags": {
"landuse": "railway"
},
"terms": [
"rail",
"train",
"track"
],
"name": "Railway Corridor"
}
4 changes: 4 additions & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,10 @@
"key": "landuse",
"value": "quarry"
},
{
"key": "landuse",
"value": "railway"
},
{
"key": "landuse",
"value": "recreation_ground"
Expand Down
4 changes: 4 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 24290ef

Please sign in to comment.