aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/map.js b/resources/map.js
index 484363b..c078368 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -55,11 +55,11 @@ $(document).ready(function() {
function createQueryData(bbox) {
// TODO: Use POST instead of GET, for neatness
- return "data=[out:json];" +
+ return "data=[out:json];(" +
"(node[amenity=hospital]("+ bbox +");way[amenity=hospital]("+ bbox +");node(w););" +
"(node[amenity=doctors]("+ bbox +");way[amenity=doctors]("+ bbox +");node(w););" +
"(node[amenity=dentist]("+ bbox +");way[amenity=dentist]("+ bbox +");node(w););" +
- "out;";
+ ");out;";
}
map.on('hospitalsfetched', addHospitalLayer);