Skip to content

Commit

Permalink
Adjust zoom level used when in needZoom mode in location selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Apr 3, 2024
1 parent 4b5162c commit 793ab2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LocationSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export default defineComponent({
this.updateCircle();
const needZoom = !this.fromInside && !this.sameLoc(loc, oldLoc);
if (this.map && (!this.map.getBounds().contains(this.latLng) || needZoom)) {
this.map.setView(this.latLng, needZoom ? 10 : this.map.getZoom());
this.map.setView(this.latLng, needZoom ? 8 : this.map.getZoom());
}
this.fromInside = false;
},
Expand Down

0 comments on commit 793ab2e

Please sign in to comment.