main.py
CHANGED
@@ -57,8 +57,20 @@ var rec_list = res['recommendations']
|
|
57 |
alert(rec_list);
|
58 |
console.log(rec_list);
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
|
|
|
|
|
|
|
62 |
setTimeout(load, 1000);
|
63 |
|
64 |
"""
|
|
|
57 |
alert(rec_list);
|
58 |
console.log(rec_list);
|
59 |
|
60 |
+
rec_list.forEach((elem) => addElem(elem));
|
61 |
+
|
62 |
+
}
|
63 |
+
|
64 |
+
function addElem(elem)
|
65 |
+
{
|
66 |
+
var marker = L.marker([elem['latitude'], elem['longitude']]).addTo(map);
|
67 |
+
marker.bindPopup(elem['name'])
|
68 |
+
|
69 |
}
|
70 |
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
setTimeout(load, 1000);
|
75 |
|
76 |
"""
|