clear map data when loadin other replay

This commit is contained in:
unknown 2021-01-08 21:33:54 +01:00
parent 26fe6469a5
commit fd3f440ab5

View File

@ -207,6 +207,9 @@ window.addEventListener("load", function(evt) {
}; };
document.getElementById("replaystarten").onclick = function(evt) { document.getElementById("replaystarten").onclick = function(evt) {
emptyTCP.features[0].geometry.coordinates = []
emptySERIAL.features[0].geometry.coordinates = []
let sel = document.getElementById("meas") let sel = document.getElementById("meas")
console.log(trackings[sel.selectedIndex].UUID) console.log(trackings[sel.selectedIndex].UUID)
fetch(`http://localhost:3011/trackings/${trackings[sel.selectedIndex].UUID}?replay=true`, { method: 'GET'}).then(results => { fetch(`http://localhost:3011/trackings/${trackings[sel.selectedIndex].UUID}?replay=true`, { method: 'GET'}).then(results => {