aboutsummaryrefslogtreecommitdiff
path: root/resources/map.js
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2013-02-07 13:53:57 +0000
committerChristopher Baines <cbaines8@gmail.com>2013-02-07 13:53:57 +0000
commit48bb641f4c2dd7af6c6b5e06daf26ccf055ab621 (patch)
tree4ce96650236742ef37c6b18c8f99725ff0fcde3a /resources/map.js
parent9073049284c1aa64fa74e41face555b3a8ae1d78 (diff)
downloadhealth-map-48bb641f4c2dd7af6c6b5e06daf26ccf055ab621.tar
health-map-48bb641f4c2dd7af6c6b5e06daf26ccf055ab621.tar.gz
Add the leaflet hash plugin
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 42eea93..7ec9cf5 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -132,6 +132,8 @@ function initMap(self) {
layers: [self.tileLayer],
}).setView([12.4822, -11.9463], 11);
+ var hash = new L.Hash(map);
+
self.amenitiesShown = ["hospital"];
self.amenities = {};
self.amenityLayers = {}; // contains the layers for each amenity type