0👍
In Vue2, you might want to try returning center2
inside data(). It looks like below:
data() {
return {
center2: {
lat: 0,
lng: 0
}
}
}
Then center2
should be updated normally along with the watcher.
Source:stackexchange.com