From 08de45c42ecca0a794d003d3798d9ca57ba74157 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 22 Jul 2021 14:51:24 +0200 Subject: [PATCH] No longer need to pass bounding box to nearby candidates API --- frontend/App.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/frontend/App.vue b/frontend/App.vue index 8f88e8b..3d7ae60 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -431,7 +431,7 @@ item type counts | item detail | item tags | - nearby OSM candidates + nearby OSM candidates
@@ -663,7 +663,6 @@ export default { mode: undefined, current_hit: undefined, recent_search: undefined, - pad_amount: 1.0, }; }, computed: { @@ -846,9 +845,6 @@ export default { bounds_param() { return 'bounds=' + this.map.getBounds().toBBoxString(); }, - pad_bounds_param() { - return 'bounds=' + this.map.getBounds().pad(this.pad_amount).toBBoxString(); - }, close_edit_list() { this.view_edits = false; if (this.upload_state != 'done') return; @@ -1137,10 +1133,8 @@ export default { }); var item_osm_candidates_url = `${this.api_base_url}/api/1/item/${qid}/candidates`; - var bounds = this.map.getBounds().pad(this.pad_amount); - var params = { bounds: bounds.toBBoxString() }; - axios.get(item_osm_candidates_url, { params: params }).then((response) => { + axios.get(item_osm_candidates_url).then((response) => { var qid = response.data.qid; var item = this.items[qid]; var osm_identifiers = item.osm ? Object.keys(item.osm) : [];