From ae6f9fda5765f581a6d07489ee3dde87205f8e57 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 1 Mar 2023 18:21:24 +0100 Subject: [PATCH] Fix restauring full umap with remoteData The check about umap_id was before isLoaded and hasDataLoaded split, so I guess (hope) it's useless here. A bit of history: https://github.com/umap-project/Leaflet.Storage/commit/217f2fcb15040a0d599cc62083e6bd1e34089687 https://github.com/umap-project/Leaflet.Storage/commit/2ea27c87f620e059c278084e90f8658684e68c3d --- 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 4a77571c..208ff571 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -365,7 +365,7 @@ L.U.DataLayer = L.Evented.extend({ }, hasDataLoaded: function () { - return !this.umap_id || this._geojson !== null; + return this._geojson !== null; }, setUmapId: function (id) {