]> git.openstreetmap.org Git - rails.git/commitdiff
Ignore bounds on elements with geometry
authorTom Hughes <tom@compton.nu>
Sun, 6 Mar 2016 21:37:47 +0000 (21:37 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 6 Mar 2016 21:37:47 +0000 (21:37 +0000)
app/assets/javascripts/index/query.js

index 1e1dc2ed1b4c35cf7ade2ded44e760be3182a86d..86f24e0469603751af413aadf02e64be547960aa 100644 (file)
@@ -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;
           }, {});