From 1b60b46a3faf68e4fba9fc00a7d455c600b07667 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 1 Sep 2023 11:52:38 +0200 Subject: [PATCH] Delete old options after consuming them --- umap/static/umap/js/umap.layer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index 46d1fee7..0fd5fbfc 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -253,9 +253,11 @@ L.U.DataLayer = L.Evented.extend({ // Retrocompat if (this.options.remoteData && this.options.remoteData.from) { this.options.fromZoom = this.options.remoteData.from + delete this.options.remoteData.from } if (this.options.remoteData && this.options.remoteData.to) { this.options.toZoom = this.options.remoteData.to + delete this.options.remoteData.to } this.backupOptions() this.connectToMap()