Add preset for power=plant

(closes #3661)

This one was a little complicated because they are generally tagged along
with landuse=industrial, and we want to make sure the power=plant is
the tag used for matching.
This commit is contained in:
Bryan Housel
2016-12-18 21:27:34 -05:00
parent d69c4d6d9a
commit 82665a6883
10 changed files with 91 additions and 11 deletions
+6 -3
View File
@@ -296,14 +296,17 @@ path.fill.tag-landuse-commercial {
background-color: rgba(214, 136, 26, 0.3);
}
path.stroke.tag-landuse-industrial {
path.stroke.tag-landuse-industrial,
path.stroke.tag-power-plant {
stroke: rgb(228, 164, 245);
}
path.fill.tag-landuse-industrial {
path.fill.tag-landuse-industrial,
path.fill.tag-power-plant {
stroke: rgba(228, 164, 245, 0.3);
fill: rgba(228, 164, 245, 0.3);
}
.preset-icon-fill-area.tag-landuse-industrial {
.preset-icon-fill-area.tag-landuse-industrial,
.preset-icon-fill-area.tag-power-plant {
border-color: rgb(228, 164, 245);
background-color: rgba(228, 164, 245, 0.3);
}
+5
View File
@@ -3322,6 +3322,11 @@ en:
# power=minor_line
name: Minor Power Line
terms: '<translate with synonyms or related terms for ''Minor Power Line'', separated by commas>'
power/plant:
# power=plant
name: Power Station Grounds
# 'terms: coal,gas,generat*,hydro,nuclear,power,station'
terms: '<translate with synonyms or related terms for ''Power Station Grounds'', separated by commas>'
power/pole:
# power=pole
name: Power Pole
+36 -4
View File
@@ -5784,6 +5784,7 @@
"tags": {
"landuse": "*"
},
"matchScore": 0.9,
"name": "Land Use"
},
"landuse/farm": {
@@ -5953,6 +5954,7 @@
"landuse": "industrial"
},
"terms": [],
"matchScore": 0.9,
"name": "Industrial Area"
},
"landuse/landfill": {
@@ -8338,24 +8340,54 @@
"name": "Power Generator"
},
"power/line": {
"icon": "power-line",
"geometry": [
"line"
],
"tags": {
"power": "line"
},
"name": "Power Line",
"icon": "power-line"
"name": "Power Line"
},
"power/minor_line": {
"icon": "power-line",
"geometry": [
"line"
],
"tags": {
"power": "minor_line"
},
"name": "Minor Power Line",
"icon": "power-line"
"name": "Minor Power Line"
},
"power/plant": {
"icon": "industrial",
"fields": [
"operator"
],
"geometry": [
"area"
],
"tags": {
"power": "plant"
},
"addTags": {
"power": "plant",
"landuse": "industrial"
},
"removeTags": {
"power": "plant",
"landuse": "industrial"
},
"terms": [
"coal",
"gas",
"generat*",
"hydro",
"nuclear",
"power",
"station"
],
"name": "Power Station Grounds"
},
"power/pole": {
"geometry": [
+1
View File
@@ -8,5 +8,6 @@
"tags": {
"landuse": "*"
},
"matchScore": 0.9,
"name": "Land Use"
}
@@ -7,5 +7,6 @@
"landuse": "industrial"
},
"terms": [],
"matchScore": 0.9,
"name": "Industrial Area"
}
+2 -2
View File
@@ -1,10 +1,10 @@
{
"icon": "power-line",
"geometry": [
"line"
],
"tags": {
"power": "line"
},
"name": "Power Line",
"icon": "power-line"
"name": "Power Line"
}
+2 -2
View File
@@ -1,10 +1,10 @@
{
"icon": "power-line",
"geometry": [
"line"
],
"tags": {
"power": "minor_line"
},
"name": "Minor Power Line",
"icon": "power-line"
"name": "Minor Power Line"
}
+30
View File
@@ -0,0 +1,30 @@
{
"icon": "industrial",
"fields": [
"operator"
],
"geometry": [
"area"
],
"tags": {
"power": "plant"
},
"addTags": {
"power": "plant",
"landuse": "industrial"
},
"removeTags": {
"power": "plant",
"landuse": "industrial"
},
"terms": [
"coal",
"gas",
"generat*",
"hydro",
"nuclear",
"power",
"station"
],
"name": "Power Station Grounds"
}
+4
View File
@@ -1899,6 +1899,10 @@
"key": "power",
"value": "minor_line"
},
{
"key": "power",
"value": "plant"
},
{
"key": "power",
"value": "pole"
+4
View File
@@ -3626,6 +3626,10 @@
"name": "Minor Power Line",
"terms": ""
},
"power/plant": {
"name": "Power Station Grounds",
"terms": "coal,gas,generat*,hydro,nuclear,power,station"
},
"power/pole": {
"name": "Power Pole",
"terms": ""