From 48bb641f4c2dd7af6c6b5e06daf26ccf055ab621 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 7 Feb 2013 13:53:57 +0000 Subject: Add the leaflet hash plugin --- .gitmodules | 3 +++ index.html | 1 + resources/leaflet-hash | 1 + resources/map.js | 2 ++ 4 files changed, 7 insertions(+) create mode 160000 resources/leaflet-hash diff --git a/.gitmodules b/.gitmodules index e3bb53e..96e85b2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "resources/openlayers"] path = resources/openlayers url = git://github.com/openlayers/openlayers.git +[submodule "resources/leaflet-hash"] + path = resources/leaflet-hash + url = git://github.com/mlevans/leaflet-hash.git diff --git a/index.html b/index.html index d39d71f..135c256 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,7 @@ + diff --git a/resources/leaflet-hash b/resources/leaflet-hash new file mode 160000 index 0000000..07f9178 --- /dev/null +++ b/resources/leaflet-hash @@ -0,0 +1 @@ +Subproject commit 07f9178d8fd84b3fb030f34f361f63e5a19dbcd1 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 -- cgit v1.2.3