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 () {