From 1afc366e11b52893ed3b13c1b81fe943a5ad9ed4 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 8 Nov 2020 17:52:45 +0100 Subject: [PATCH] Do not change zoom when locating user cf #763 --- umap/static/umap/js/umap.controls.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index e522f540..cbb31dfe 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -841,6 +841,7 @@ L.U.LocateControl = L.Control.extend({ activate: function () { this._map.locate({ setView: true, + maxZoom: this._map.getZoom(), enableHighAccuracy: true, watch: true });