From 9090e67badfcdface75044a018ea59f88d81060e Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 16 Jul 2021 09:59:06 +0200 Subject: [PATCH] Add more extra tags --- frontend/App.vue | 4 +++- matcher/data.py | 3 +++ templates/map.html | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/App.vue b/frontend/App.vue index b6f8a75..4b83a05 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -589,6 +589,7 @@ export default { username: String, startMode: String, q: String, + defaultComment: String, }, data() { return { @@ -624,7 +625,7 @@ export default { show_tag_or_key_list: undefined, edits: [], view_edits: false, - changeset_comment: "Add wikidata tag", + changeset_comment: undefined, changeset_id: undefined, upload_state: undefined, upload_progress: 0, @@ -1398,6 +1399,7 @@ export default { this.center = [lat, lon]; this.zoom = this.startZoom; this.mode = this.startMode; + this.changeset_comment = this.defaultComment || '+wikidata'; }, mounted() { diff --git a/matcher/data.py b/matcher/data.py index 8a7e061..02e71c8 100644 --- a/matcher/data.py +++ b/matcher/data.py @@ -175,6 +175,9 @@ extra_keys = { 'Q14350': ['Key:communication:radio', 'Tag:studio=radio', 'Tag:amenity=studio'], # radio station + 'Q166118': ['Tag:tourism=museum', + 'Tag:amenity=library'], # archive + 'Q486972': ['Key:place'], # human settlement } property_map = [ diff --git a/templates/map.html b/templates/map.html index 711878d..212db3e 100644 --- a/templates/map.html +++ b/templates/map.html @@ -24,6 +24,7 @@ startLon: {{ lon }}, startZoom: {{ zoom }}, startRadius: {{ radius | tojson }}, + defaultComment: {{ config.DEFAULT_COMMENT | tojson }}, username: {{ username | tojson }}, startMode: {{ mode | tojson }}, q: {{ q | tojson }},