aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-03-19 15:25:15 +0100
committerJochen Topf <jochen@topf.org>2015-03-19 15:25:15 +0100
commitc616b58a82011608e4632e9699aa7d195f6f3731 (patch)
treea5e282c0e800992b5dbff0ed51704ff7ab950015
parent135c5465761e33c14755b742521ed4b66080b1fa (diff)
downloadtaginfo-c616b58a82011608e4632e9699aa7d195f6f3731.tar
taginfo-c616b58a82011608e4632e9699aa7d195f6f3731.tar.gz
Also get nodes in ways for Level0 editor.
See #118.
-rw-r--r--web/public/js/taginfo.js4
1 files changed, 2 insertions, 2 deletions
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;');