Only show flag country field when flag:type=national (close #7099)

This commit is contained in:
Quincy Morgan
2019-12-09 10:28:44 -05:00
parent baca525117
commit 89e340a930
7 changed files with 19 additions and 3 deletions

View File

@@ -475,6 +475,9 @@ en:
country:
# country=*
label: Country
country_flag:
# country=*
label: Flag Country
couplings:
# couplings=*
label: Couplings

View File

@@ -80,6 +80,7 @@
"content": {"key": "content", "type": "combo", "label": "Content", "options": ["silage", "water", "oil", "fuel", "slurry", "gas", "manure", "sewage"]},
"conveying_escalator": {"key": "conveying", "type": "check", "label": "Escalator"},
"conveying": {"key": "conveying", "type": "typeCombo", "label": "Movement Direction", "strings": {"options": {"forward": "Forward", "backward": "Backward", "reversible": "Reversible"}}},
"country_flag": {"key": "country", "type": "combo", "label": "Flag Country", "prerequisiteTag": {"key": "flag:type", "value": "national"}},
"country": {"key": "country", "type": "combo", "label": "Country"},
"couplings": {"key": "couplings", "type": "number", "minValue": 1, "label": "Couplings", "placeholder": "1, 2, 3..."},
"covered": {"key": "covered", "type": "check", "label": "Covered"},

View File

@@ -0,0 +1,9 @@
{
"key": "country",
"type": "combo",
"label": "Flag Country",
"prerequisiteTag": {
"key": "flag:type",
"value": "national"
}
}

View File

@@ -729,7 +729,7 @@
"man_made/cutline": {"icon": "maki-logging", "geometry": ["line"], "tags": {"man_made": "cutline"}, "name": "Cut line"},
"man_made/dyke": {"geometry": ["line"], "tags": {"man_made": "dyke"}, "terms": ["Dike", "Dyke", "Floodbank", "Stopbank"], "name": "Levee"},
"man_made/embankment": {"geometry": ["line"], "tags": {"man_made": "embankment"}, "name": "Embankment"},
"man_made/flagpole": {"icon": "maki-embassy", "fields": ["operator", "flag/type", "country", "lit", "height"], "moreFields": ["manufacturer", "material"], "geometry": ["point", "vertex"], "tags": {"man_made": "flagpole"}, "name": "Flagpole"},
"man_made/flagpole": {"icon": "maki-embassy", "fields": ["operator", "flag/type", "country_flag", "lit", "height"], "moreFields": ["manufacturer", "material"], "geometry": ["point", "vertex"], "tags": {"man_made": "flagpole"}, "name": "Flagpole"},
"man_made/gasometer": {"icon": "temaki-storage_tank", "fields": ["content", "building_area"], "geometry": ["point", "area"], "terms": ["gas holder"], "tags": {"man_made": "gasometer"}, "name": "Gasometer"},
"man_made/groyne": {"fields": ["material", "seamark/type"], "geometry": ["line", "area"], "tags": {"man_made": "groyne"}, "name": "Groyne"},
"man_made/lighthouse": {"icon": "maki-lighthouse", "fields": ["name", "operator", "building_area", "height"], "moreFields": ["address", "email", "fax", "gnis/feature_id", "phone", "seamark/type", "website"], "geometry": ["point", "area"], "tags": {"man_made": "lighthouse"}, "addTags": {"man_made": "lighthouse", "seamark:type": "light_major"}, "removeTags": {"man_made": "lighthouse", "seamark:type": "*"}, "name": "Lighthouse"},

View File

@@ -3,7 +3,7 @@
"fields": [
"operator",
"flag/type",
"country",
"country_flag",
"lit",
"height"
],

View File

@@ -1349,7 +1349,7 @@
{"key": "conveying", "value": "forward", "description": "🄵 Movement Direction"},
{"key": "conveying", "value": "backward", "description": "🄵 Movement Direction"},
{"key": "conveying", "value": "reversible", "description": "🄵 Movement Direction"},
{"key": "country", "description": "🄵 Country"},
{"key": "country", "description": "🄵 Flag Country, 🄵 Country"},
{"key": "couplings", "description": "🄵 Couplings"},
{"key": "covered", "description": "🄵 Covered"},
{"key": "crane:type", "value": "portal_crane", "description": "🄵 Crane Type"},

View File

@@ -2923,6 +2923,9 @@
"reversible": "Reversible"
}
},
"country_flag": {
"label": "Flag Country"
},
"country": {
"label": "Country"
},