Ignore bounds on elements with geometry
This commit is contained in:
parent
0ff7a928e4
commit
6e154d48c0
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}, {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue