aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Cutts <eternal.linux@gmail.com>2012-12-02 14:21:49 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-12-02 14:32:23 +0000
commitf147847ad79c3c12a3ebea24e9e8365118338869 (patch)
treeadf6d39ef4d8a3a3b4075e2118d9242e6812f3f6
parenta01fe9d69e4c559252244f168a644158e6eeec92 (diff)
downloadhealth-map-f147847ad79c3c12a3ebea24e9e8365118338869.tar
health-map-f147847ad79c3c12a3ebea24e9e8365118338869.tar.gz
Fix a query problem that was only showing dentists
-rw-r--r--resources/map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/map.js b/resources/map.js
index 2886460..4c8c9cd 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -58,11 +58,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);