mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-30 17:00:35 +02:00
Only show flag country field when flag:type=national (close #7099)
This commit is contained in:
@@ -475,6 +475,9 @@ en:
|
||||
country:
|
||||
# country=*
|
||||
label: Country
|
||||
country_flag:
|
||||
# country=*
|
||||
label: Flag Country
|
||||
couplings:
|
||||
# couplings=*
|
||||
label: Couplings
|
||||
|
||||
@@ -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"},
|
||||
|
||||
9
data/presets/fields/country_flag.json
Normal file
9
data/presets/fields/country_flag.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"key": "country",
|
||||
"type": "combo",
|
||||
"label": "Flag Country",
|
||||
"prerequisiteTag": {
|
||||
"key": "flag:type",
|
||||
"value": "national"
|
||||
}
|
||||
}
|
||||
@@ -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"},
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"fields": [
|
||||
"operator",
|
||||
"flag/type",
|
||||
"country",
|
||||
"country_flag",
|
||||
"lit",
|
||||
"height"
|
||||
],
|
||||
|
||||
@@ -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"},
|
||||
|
||||
3
dist/locales/en.json
vendored
3
dist/locales/en.json
vendored
@@ -2923,6 +2923,9 @@
|
||||
"reversible": "Reversible"
|
||||
}
|
||||
},
|
||||
"country_flag": {
|
||||
"label": "Flag Country"
|
||||
},
|
||||
"country": {
|
||||
"label": "Country"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user