aboutsummaryrefslogtreecommitdiff
path: root/static/js/map.js
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2021-11-17 17:31:10 -0500
committerPriyansh <[email protected]>2021-11-17 17:31:10 -0500
commitae5f4701eaecb463852aa0e4f147b077daf37a46 (patch)
treeacf2719f139124fb1b2e5749418655393ea5f9e7 /static/js/map.js
parentd7aecd81f85400d3ad3dd0756a114ff27c31a595 (diff)
downloadtemp_pred_arima-ae5f4701eaecb463852aa0e4f147b077daf37a46.tar.xz
temp_pred_arima-ae5f4701eaecb463852aa0e4f147b077daf37a46.zip
Added city Search instead of select
Diffstat (limited to 'static/js/map.js')
-rw-r--r--static/js/map.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/static/js/map.js b/static/js/map.js
index ec6d9b4..a197fdb 100644
--- a/static/js/map.js
+++ b/static/js/map.js
@@ -4,17 +4,6 @@ InitializeMap({
latitude: 42.8864,
longitude: -78.8784
});
-for (var i in cities) {
- var select = document.getElementById("city_list");
- var option = document.createElement("option");
- option.text = cities[i].city;
- option.value = i;
- select.add(option);
-}
-document.getElementById("city_list").addEventListener('change', function () {
- city = cities[this.value]
- reRenderMap(city);
-});
function InitializeMap(city) {
map = L.map('map').setView([city.latitude, city.longitude], 12);