From: Tom Hughes Date: Sun, 6 Mar 2016 21:37:47 +0000 (+0000) Subject: Ignore bounds on elements with geometry X-Git-Tag: live~3995 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6e154d48c0e77ea110fc93772c6a2be113a90bb1?ds=sidebyside Ignore bounds on elements with geometry --- 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; }, {});