Ignore bounds on elements with geometry

This commit is contained in:
Tom Hughes 2016-03-06 21:37:47 +00:00
parent 0ff7a928e4
commit 6e154d48c0

View 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;
}, {});