Skip to content

Commit

Permalink
Merge branch 'codeforberlin:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
easz authored Sep 28, 2023
2 parents 41131de + e0d02b8 commit af1ac6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@
},
changeView: function() {
this.leafletMap.setView(this.center, this.zoom)
},
changeCenter: function() {
this.leafletMap.panTo(this.center)
}
},
watch: {
map() {
this.changeMap()
},
center() {
this.changeView()
this.changeCenter()
}
},
mounted() {
Expand Down

0 comments on commit af1ac6c

Please sign in to comment.