From c616b58a82011608e4632e9699aa7d195f6f3731 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Thu, 19 Mar 2015 15:25:15 +0100 Subject: Also get nodes in ways for Level0 editor. See #118. --- web/public/js/taginfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/public') diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js index 22cb324..d3f9225 100644 --- a/web/public/js/taginfo.js +++ b/web/public/js/taginfo.js @@ -566,11 +566,11 @@ function level0_editor(overpass_url_prefix, level0_url_prefix, filter, key, valu if (filter == 'nodes') { query = 'node' + query; } else if (filter == 'ways') { - query = 'way' + query; + query = 'way' + query + '>;'; } else if (filter == 'relations') { query = 'rel' + query; } else { - query = '(node' + query + 'way' + query + 'rel' + query + ');'; + query = '(node' + query + 'way' + query + '>;rel' + query + ');'; } var overpass_url = overpass_url_prefix + 'data=' + encodeURIComponent('[out:xml];' + query + 'out meta;'); -- cgit v1.2.3