diff --git a/src/index.html b/src/index.html
index 3f255cb..d9aab52 100644
--- a/src/index.html
+++ b/src/index.html
@@ -98,6 +98,12 @@
+
diff --git a/src/js/map.js b/src/js/map.js
index 9254096..17cd871 100644
--- a/src/js/map.js
+++ b/src/js/map.js
@@ -1,3 +1,4 @@
+var map;
$(document).ready(function() {
/* change image path */
L.Icon.Default.imagePath = 'img';
@@ -40,7 +41,7 @@ $(document).ready(function() {
return marker
}
- var map = L.map('map').setView([51.0475378, 3.7261835], 13);
+ map = L.map('map').setView([51.0475378, 3.7261835], 13);
var osm = L.tileLayer('https://{s}.tiles.mapbox.com/v3/feliciaan.keoaj8d5/{z}/{x}/{y}{r}.png', {
attribution: '© Mapbox | © OpenStreetMap-contributors | Made with ❤ by Zeus WPI',
detectRetina: true
@@ -163,6 +164,10 @@ $(document).ready(function() {
position: 'topright'
}).addTo(map);
+ var citySelect = new SimpleControl('#city-select-template', christmasHoliday ? "holiday-legend" : "legend", {
+ position: 'topleft'
+ }).addTo(map);
+
var sharePane = new SimpleControl('#share-template', 'info', {
position: 'bottomleft'
}).addTo(map);
@@ -171,3 +176,7 @@ $(document).ready(function() {
position: 'bottomright'
}).addTo(map);
});
+
+function moveToCoords(x, y, scale) {
+ map.setView([x, y], scale);
+}
\ No newline at end of file