mirror of
https://github.com/owntracks/frontend.git
synced 2026-08-25 20:47:16 +00:00
Add onLocationChange.fitView config option
It defaults to false now, which is a change - this seems like a sensible choice though. I can see how it would be annoying to have the map change while looking at it just because *something* moved. Fixes #41.
This commit is contained in:
+3
-1
@@ -232,7 +232,9 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
lastLocations() {
|
||||
this.fitView();
|
||||
if (this.$config.onLocationChange.fitView) {
|
||||
this.fitView();
|
||||
}
|
||||
},
|
||||
filteredLocationHistory() {
|
||||
this.fitView();
|
||||
|
||||
Reference in New Issue
Block a user