X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0ff7a928e4359b177a43b7d2e8e1e0e468c2be53..c57d2b29fc1f4647b460b6b74d072c409932e3f2:/app/assets/javascripts/index/query.js diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index 1e1dc2ed1..023e2a7f2 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -179,7 +179,7 @@ OSM.Query = function(map) { url: url, method: "POST", data: { - data: "[timeout:5][out:json];" + query, + data: "[timeout:10][out:json];" + query, }, success: function(results) { var elements; @@ -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; }, {}); @@ -223,6 +226,12 @@ OSM.Query = function(map) { } } + if (results.remark) { + $("