fix: make sure we do not add geojson in options
This change is already in production, but has not been commited yet…
This commit is contained in:
parent
5d6bf0a3a6
commit
9cb6ed6400
1 changed files with 1 additions and 0 deletions
|
@ -797,6 +797,7 @@ L.U.DataLayer = L.Evented.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
setOptions: function (options) {
|
setOptions: function (options) {
|
||||||
|
delete options.geojson
|
||||||
this.options = L.Util.CopyJSON(L.U.DataLayer.prototype.options) // Start from fresh.
|
this.options = L.Util.CopyJSON(L.U.DataLayer.prototype.options) // Start from fresh.
|
||||||
this.updateOptions(options)
|
this.updateOptions(options)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue