aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorHarry Cutts <eternal.linux@gmail.com>2012-12-02 14:06:25 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-12-02 14:32:23 +0000
commita01fe9d69e4c559252244f168a644158e6eeec92 (patch)
tree630417908c2254a34a59898b9eab83e54c817e81 /resources
parenta9b76b8848593e99a756ab1a38cdd91a2f870807 (diff)
downloadhealth-map-a01fe9d69e4c559252244f168a644158e6eeec92.tar
health-map-a01fe9d69e4c559252244f168a644158e6eeec92.tar.gz
Add doctors and dentists to the query
Diffstat (limited to 'resources')
-rw-r--r--resources/map.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/map.js b/resources/map.js
index 077e370..2886460 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -59,8 +59,10 @@ $(document).ready(function() {
function createQueryData(bbox) {
// TODO: Use POST instead of GET, for neatness
return "data=[out:json];" +
- "(node[amenity=hospital]("+ bbox
- +");way[amenity=hospital]("+ bbox +");node(w););out;";
+ "(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;";
}
map.on('hospitalsfetched', addHospitalLayer);