diff options
author | Harry Cutts <eternal.linux@gmail.com> | 2012-12-02 14:21:49 +0000 |
---|---|---|
committer | Harry Cutts <eternal.linux@gmail.com> | 2012-12-02 14:21:49 +0000 |
commit | e010ed88f47e5e1629aaa494ccb8c173299842b0 (patch) | |
tree | a2e350513eb81c1f38acada5f38cebd190d7225f | |
parent | 0270111b931f88a56e099bbc0b18a232cedc0579 (diff) | |
download | health-map-e010ed88f47e5e1629aaa494ccb8c173299842b0.tar health-map-e010ed88f47e5e1629aaa494ccb8c173299842b0.tar.gz |
Fix a query problem that was only showing dentists
-rw-r--r-- | resources/map.js | 4 |
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); |