From 9cb6ed6400c929f14d615074f88db01a9da03b4d Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 30 Jan 2024 19:04:59 +0100 Subject: [PATCH] fix: make sure we do not add geojson in options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change is already in production, but has not been commited yet… --- umap/static/umap/js/umap.layer.js | 1 + 1 file changed, 1 insertion(+) 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) },