Do not change zoom when locating user

cf #763
This commit is contained in:
Yohan Boniface 2020-11-08 17:52:45 +01:00
parent eeb58a8c21
commit 1afc366e11

View file

@ -841,6 +841,7 @@ L.U.LocateControl = L.Control.extend({
activate: function () { activate: function () {
this._map.locate({ this._map.locate({
setView: true, setView: true,
maxZoom: this._map.getZoom(),
enableHighAccuracy: true, enableHighAccuracy: true,
watch: true watch: true
}); });