From 6e154d48c0e77ea110fc93772c6a2be113a90bb1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 6 Mar 2016 21:37:47 +0000 Subject: [PATCH] Ignore bounds on elements with geometry --- app/assets/javascripts/index/query.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 1e1dc2ed1..86f24e046 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -189,6 +189,9 @@ OSM.Query = function(map) { if (merge) { elements = results.elements.reduce(function (hash, element) { var key = element.type + element.id; + if ("geometry" in element) { + delete element.bounds; + } hash[key] = $.extend({}, hash[key], element); return hash; }, {}); -- 2.39.5