aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Cutts <eternal.linux@gmail.com>2012-12-02 14:21:49 +0000
committerHarry Cutts <eternal.linux@gmail.com>2012-12-02 14:21:49 +0000
commite010ed88f47e5e1629aaa494ccb8c173299842b0 (patch)
treea2e350513eb81c1f38acada5f38cebd190d7225f
parent0270111b931f88a56e099bbc0b18a232cedc0579 (diff)
downloadhealth-map-e010ed88f47e5e1629aaa494ccb8c173299842b0.tar
health-map-e010ed88f47e5e1629aaa494ccb8c173299842b0.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 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);