Open HusamElbashir opened 8 months ago
Hi. Guys, can you tell me if the problem is solvable? Unfortunately, I can't beat her myself =(
As a workaround you can create a new path
array every time instead of pushing to the old one
const addNewCoordinate = () => {
const newCoordinate = {
lat: Math.random() * 180 - 90,
lng: Math.random() * 360 - 180,
}
flightPath.value = {
...flightPath.value,
path: [...flightPath.value.path, newCoordinate],
}
}
Thank you very much. It just happened!
Discussed in https://github.com/inocan-group/vue3-google-map/discussions/241