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:
Yohan Boniface 2024-01-30 19:04:59 +01:00
parent 5d6bf0a3a6
commit 9cb6ed6400

View file

@ -797,6 +797,7 @@ L.U.DataLayer = L.Evented.extend({
},
setOptions: function (options) {
delete options.geojson
this.options = L.Util.CopyJSON(L.U.DataLayer.prototype.options) // Start from fresh.
this.updateOptions(options)
},