aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilli <willi@jups42.de>2012-12-01 18:57:52 +0100
committerWilli <willi@jups42.de>2012-12-01 18:57:52 +0100
commit03234d0192da6c1c4744e05b12f34c8bcbf051b6 (patch)
tree20707275fbae71c2a36b0e61ff38e83fda28434e
parent6e7be0a947d505f77da1e27f698628d8c85a0a58 (diff)
downloadhealth-map-03234d0192da6c1c4744e05b12f34c8bcbf051b6.tar
health-map-03234d0192da6c1c4744e05b12f34c8bcbf051b6.tar.gz
automatically display hospital layer
-rw-r--r--resources/map.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/map.js b/resources/map.js
index 2896fad..d98cc87 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -12,6 +12,8 @@ $(document).ready(function() {
L.control.layers(null, {
"Hospitals" : self.hospitalLayer
}).addTo(map);
+ // display layer
+ $('.leaflet-control-layers-selector').first().trigger('click')
}
$('body').bind('hospitalsfetched', addHospitalLayer);