diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | index.html | 1 | ||||
m--------- | resources/leaflet-hash | 0 | ||||
-rw-r--r-- | resources/map.js | 2 |
4 files changed, 6 insertions, 0 deletions
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 @@ -16,6 +16,7 @@ <link rel="stylesheet" href="resources/map.css" /> <script src="resources/leaflet/dist/leaflet-src.js"></script> + <script src="resources/leaflet-hash/leaflet-hash.js"></script> <script src="resources/libs/locate/L.Control.Locate.js"></script> <script src="resources/op2geojson.js"></script> <script src="resources/data.js"></script> 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 |