Don't mutate this._defaultLocateOptions.
This commit is contained in:
parent
165bc298e0
commit
a28c9508be
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user