diff --git a/src/map/ext/Map.Geolocation.js b/src/map/ext/Map.Geolocation.js index 38235516..05fe552a 100644 --- a/src/map/ext/Map.Geolocation.js +++ b/src/map/ext/Map.Geolocation.js @@ -14,7 +14,7 @@ L.Map.include({ locate: function (/*Object*/ options) { - options = this._locateOptions = L.extend(this._defaultLocateOptions, options); + options = this._locateOptions = L.extend({}, this._defaultLocateOptions, options); if (!navigator.geolocation) { this._handleGeolocationError({