diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index 8ad25de5..7fafaea1 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -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) },