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:
Yohan Boniface 2024-01-31 06:57:00 +01:00 committed by GitHub
commit 1c88f7f88c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}, },