Merge pull request #1571 from umap-project/intercept-options-geojson
fix: make sure we do not add geojson in options
This commit is contained in:
commit
1c88f7f88c
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