From 84c275c422f6e3a1685f9382988a59247f577c6d Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 28 Aug 2020 15:12:31 -0400 Subject: [PATCH] Add generic Telecom Feature fallback preset (close #7934) --- data/presets.yaml | 6 ++++++ data/presets/fields.json | 1 + data/presets/fields/telecom.json | 5 +++++ data/presets/presets.json | 1 + data/presets/presets/_telecom.json | 18 ++++++++++++++++++ data/taginfo.json | 1 + dist/locales/en.json | 6 ++++++ 7 files changed, 38 insertions(+) create mode 100644 data/presets/fields/telecom.json create mode 100644 data/presets/presets/_telecom.json diff --git a/data/presets.yaml b/data/presets.yaml index ed4c7be71..9503dbf37 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -2575,6 +2575,9 @@ en: target: # target=* label: Target + telecom: + # telecom=* + label: Type telecom/medium: # 'telecom:medium=*' label: Medium @@ -8559,6 +8562,9 @@ en: # shop=wine name: Wine Shop terms: '' + telecom: + # telecom=* + name: Telecom Feature telecom/data_center: # telecom=data_center name: Data Center diff --git a/data/presets/fields.json b/data/presets/fields.json index ebd92f6d5..6a55f9b1b 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -451,6 +451,7 @@ "tactile_paving": {"key": "tactile_paving", "type": "check", "label": "Tactile Paving"}, "takeaway": {"key": "takeaway", "type": "combo", "label": "Takeaway", "placeholder": "Yes, No, Takeaway Only...", "strings": {"options": {"yes": "Yes", "no": "No", "only": "Takeaway Only"}}, "terms": ["take out", "takeout"]}, "target": {"key": "target", "type": "combo", "label": "Target"}, + "telecom": {"key": "telecom", "type": "combo", "label": "Type"}, "telecom/medium": {"key": "telecom:medium", "type": "combo", "label": "Medium"}, "tidal": {"key": "tidal", "type": "check", "label": "Tidal"}, "to": {"key": "to", "type": "text", "label": "To"}, diff --git a/data/presets/fields/telecom.json b/data/presets/fields/telecom.json new file mode 100644 index 000000000..ffb3c83c3 --- /dev/null +++ b/data/presets/fields/telecom.json @@ -0,0 +1,5 @@ +{ + "key": "telecom", + "type": "combo", + "label": "Type" +} diff --git a/data/presets/presets.json b/data/presets/presets.json index 4d2bcbcdb..c833e2a5c 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -19,6 +19,7 @@ "power": {"icon": "temaki-power", "geometry": ["point", "vertex", "line", "area"], "tags": {"power": "*"}, "fields": ["power"], "moreFields": ["material"], "searchable": false, "name": "Power Feature"}, "railway": {"icon": "temaki-rail_profile", "fields": ["railway"], "geometry": ["point", "vertex", "line", "area"], "tags": {"railway": "*"}, "searchable": false, "name": "Railway Feature"}, "seamark": {"icon": "maki-harbor", "fields": ["seamark/type"], "geometry": ["point", "vertex", "line", "area"], "tags": {"seamark:type": "*"}, "searchable": false, "name": "Seamark"}, + "telecom": {"icon": "temaki-cable", "fields": ["telecom", "operator"], "geometry": ["point", "vertex", "line", "area"], "tags": {"telecom": "*"}, "searchable": false, "name": "Telecom Feature"}, "tourism": {"icon": "maki-attraction", "fields": ["name", "tourism"], "geometry": ["point", "vertex", "line", "area"], "tags": {"tourism": "*"}, "searchable": false, "name": "Tourism Feature"}, "waterway": {"fields": ["name", "waterway"], "geometry": ["point", "vertex", "line", "area"], "tags": {"waterway": "*"}, "searchable": false, "name": "Waterway Feature"}, "addr/interpolation": {"fields": ["addr/interpolation"], "geometry": ["line"], "tags": {"addr:interpolation": "*"}, "name": "Address Interpolation", "searchable": false, "matchScore": 0.2}, diff --git a/data/presets/presets/_telecom.json b/data/presets/presets/_telecom.json new file mode 100644 index 000000000..3588ff9a7 --- /dev/null +++ b/data/presets/presets/_telecom.json @@ -0,0 +1,18 @@ +{ + "icon": "temaki-cable", + "fields": [ + "telecom", + "operator" + ], + "geometry": [ + "point", + "vertex", + "line", + "area" + ], + "tags": { + "telecom": "*" + }, + "searchable": false, + "name": "Telecom Feature" +} diff --git a/data/taginfo.json b/data/taginfo.json index cfac27e1a..5eed60b08 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -23,6 +23,7 @@ {"key": "power", "description": "🄿 Power Feature (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"], "icon_url": "https://cdn.jsdelivr.net/gh/ideditor/temaki/icons/power.svg"}, {"key": "railway", "description": "🄿 Railway Feature (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"], "icon_url": "https://cdn.jsdelivr.net/gh/ideditor/temaki/icons/rail_profile.svg"}, {"key": "seamark:type", "description": "🄿 Seamark (unsearchable), 🄵 Seamark", "object_types": ["node", "way", "area"], "icon_url": "https://cdn.jsdelivr.net/gh/mapbox/maki/icons/harbor-15.svg"}, + {"key": "telecom", "description": "🄿 Telecom Feature (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"], "icon_url": "https://cdn.jsdelivr.net/gh/ideditor/temaki/icons/cable.svg"}, {"key": "tourism", "description": "🄿 Tourism Feature (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"], "icon_url": "https://cdn.jsdelivr.net/gh/mapbox/maki/icons/attraction-15.svg"}, {"key": "waterway", "description": "🄿 Waterway Feature (unsearchable), 🄵 Type", "object_types": ["node", "way", "area"]}, {"key": "addr:interpolation", "description": "🄿 Address Interpolation (unsearchable)", "object_types": ["way"]}, diff --git a/dist/locales/en.json b/dist/locales/en.json index 46bdf9974..88a3064f3 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -4928,6 +4928,9 @@ "target": { "label": "Target" }, + "telecom": { + "label": "Type" + }, "telecom/medium": { "label": "Medium" }, @@ -5275,6 +5278,9 @@ "seamark": { "name": "Seamark" }, + "telecom": { + "name": "Telecom Feature" + }, "tourism": { "name": "Tourism Feature" },