aboutsummaryrefslogtreecommitdiff
path: root/resources
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
parent9073049284c1aa64fa74e41face555b3a8ae1d78 (diff)
downloadhealth-map-48bb641f4c2dd7af6c6b5e06daf26ccf055ab621.tar
health-map-48bb641f4c2dd7af6c6b5e06daf26ccf055ab621.tar.gz
Add the leaflet hash plugin
Diffstat (limited to 'resources')
m---------resources/leaflet-hash0
-rw-r--r--resources/map.js2
2 files changed, 2 insertions, 0 deletions
diff --git a/resources/leaflet-hash b/resources/leaflet-hash
new file mode 160000
+Subproject 07f9178d8fd84b3fb030f34f361f63e5a19dbcd
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