aboutsummaryrefslogtreecommitdiff
path: root/resources/map.js
diff options
context:
space:
mode:
authorWilli <willi@jups42.de>2012-12-02 23:33:47 +0100
committerWilli <willi@jups42.de>2012-12-02 23:33:47 +0100
commit19eaafbb9ff1996266ab617125bb02f47bd2c20e (patch)
tree601dcb8056446b74058ac54901e63a4f67392f11 /resources/map.js
parente6553439a6857080c375c59ae8275112680b8efc (diff)
downloadhealth-map-19eaafbb9ff1996266ab617125bb02f47bd2c20e.tar
health-map-19eaafbb9ff1996266ab617125bb02f47bd2c20e.tar.gz
added locate me from @domoritz
Diffstat (limited to 'resources/map.js')
-rw-r--r--resources/map.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/map.js b/resources/map.js
index 482a5f7..44fe54c 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -28,6 +28,8 @@ $(document).ready(function() {
layers: [self.tileLayer],
});
GlobalMap = map;
+
+ L.control.locate().addTo(map);
function addHospitalLayer(){
var filteredLayers = _.map(self.hospitalAttributes, function (attr) {