This commit is contained in:
parent
14e203e821
commit
8f6ed84ee0
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@
|
|||
function update() {
|
||||
fetch('/json')
|
||||
.then(response => response.json())
|
||||
.then(data => console.log(data));
|
||||
.then(data => {
|
||||
map.setView([data["lat"], data["lon"]], 13);
|
||||
});
|
||||
}
|
||||
update()
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue