aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/public/js/taginfo.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index 8a5894e..22cb324 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -573,15 +573,9 @@ function level0_editor(overpass_url_prefix, level0_url_prefix, filter, key, valu
query = '(node' + query + 'way' + query + 'rel' + query + ');';
}
- var overpass_url = overpass_url_prefix + 'data=[out:json];' + query + 'out body;';
-
- jQuery.getJSON(overpass_url, function(data) {
- var objects = jQuery.map(data.elements, function(el) {
- return el.type.substr(0,1) + el.id + (el.type == 'way' ? '!' : '');
- });
- var level0_url = level0_url_prefix + 'url=' + objects.join(',');
- window.open(level0_url, '_blank');
- });
+ var overpass_url = overpass_url_prefix + 'data=' + encodeURIComponent('[out:xml];' + query + 'out meta;');
+ var level0_url = level0_url_prefix + 'url=' + encodeURIComponent(overpass_url);
+ window.open(level0_url, '_blank');
return false;
}