From c4b8e24dab9d019780440743122cd1579d412a81 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 17 Apr 2024 10:03:30 +0200 Subject: [PATCH] fix: prevent rebuilding the browser at each save Otherwise we lose the browser current context (some layer may be opened, or user may have scrolled down) --- umap/static/umap/js/umap.layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index e7d730fe..c62f9650 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -845,8 +845,8 @@ U.DataLayer = L.Evented.extend({ this.map.datalayers[id] = this if (L.Util.indexOf(this.map.datalayers_index, this) === -1) this.map.datalayers_index.push(this) + this.map.onDataLayersChanged() } - this.map.onDataLayersChanged() }, _dataUrl: function () {