diff options
author | Harry Cutts <eternal.linux@gmail.com> | 2012-12-02 14:06:25 +0000 |
---|---|---|
committer | Harry Cutts <eternal.linux@gmail.com> | 2012-12-02 14:06:25 +0000 |
commit | 0270111b931f88a56e099bbc0b18a232cedc0579 (patch) | |
tree | 8d97e3d8f537056e6f7fa84cb247830ac677fc90 /resources/map.js | |
parent | ead7cc174cc6c3f9fd9c72a484e3fa0d48a89e34 (diff) | |
download | health-map-0270111b931f88a56e099bbc0b18a232cedc0579.tar health-map-0270111b931f88a56e099bbc0b18a232cedc0579.tar.gz |
Add doctors and dentists to the query
Diffstat (limited to 'resources/map.js')
-rw-r--r-- | resources/map.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/map.js b/resources/map.js index 86b6ea6..484363b 100644 --- a/resources/map.js +++ b/resources/map.js @@ -56,8 +56,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); |