main.py
CHANGED
@@ -22,7 +22,7 @@ let map = null;
|
|
22 |
function load()
|
23 |
{
|
24 |
//map = L.map('mapid').setView([37.5158, 127.0991], 13);
|
25 |
-
map = L.map('mapid').setView([33.4311, 126.5499],
|
26 |
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
27 |
maxZoom: 19,
|
28 |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
@@ -49,14 +49,14 @@ function load()
|
|
49 |
function handle_post() {
|
50 |
//messages_input = $("#chat_form :input[name='messages']").value;
|
51 |
messages_input = $( "input" ).last().val()
|
52 |
-
alert(messages_input);
|
53 |
console.log(messages_input);
|
54 |
res = JSON.parse(messages_input);
|
55 |
//var marker = L.marker([51.5, -0.09]).addTo(map);
|
56 |
|
57 |
var rec_list = res['recommendations']
|
58 |
|
59 |
-
alert(rec_list);
|
60 |
console.log(rec_list);
|
61 |
|
62 |
rec_list.forEach((elem) => addElem(elem));
|
|
|
22 |
function load()
|
23 |
{
|
24 |
//map = L.map('mapid').setView([37.5158, 127.0991], 13);
|
25 |
+
map = L.map('mapid').setView([33.4311, 126.5499], 10);
|
26 |
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
27 |
maxZoom: 19,
|
28 |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
|
49 |
function handle_post() {
|
50 |
//messages_input = $("#chat_form :input[name='messages']").value;
|
51 |
messages_input = $( "input" ).last().val()
|
52 |
+
//alert(messages_input);
|
53 |
console.log(messages_input);
|
54 |
res = JSON.parse(messages_input);
|
55 |
//var marker = L.marker([51.5, -0.09]).addTo(map);
|
56 |
|
57 |
var rec_list = res['recommendations']
|
58 |
|
59 |
+
//alert(rec_list);
|
60 |
console.log(rec_list);
|
61 |
|
62 |
rec_list.forEach((elem) => addElem(elem));
|