This commit is contained in:
portree_kid 2020-06-21 22:53:42 +02:00
parent 4923b467f4
commit 2f50bf1782

View File

@ -67,7 +67,9 @@ const actions = {
context.commit('ZOOM', zoom) context.commit('ZOOM', zoom)
}, },
async setCenter (context, center) { async setCenter (context, center) {
context.commit('CENTER', center) if( center.lat !== context.state.center.lat || center.lng !== context.state.center.lng) {
context.commit('CENTER', center)
}
}, },
async setBounds (context, bounds) { async setBounds (context, bounds) {
context.commit('BOUNDS', bounds) context.commit('BOUNDS', bounds)