From 08fed332cbbfca30a19f55bfe78f801e17e81c3c Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 11 Jul 2023 15:57:11 +0200 Subject: [PATCH] Bump Leaflet to 1.9.4 Changelog: https://github.com/Leaflet/Leaflet/blob/main/CHANGELOG.md Sounds safe for us. Tested localy. Tests pass. Inch Allah. --- package.json | 2 +- umap/static/umap/js/umap.layer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eebf3aac..7d4ab933 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "csv2geojson": "5.1.1", "dompurify": "^3.0.3", "georsstogeojson": "^0.1.0", - "leaflet": "1.3.4", + "leaflet": "1.9.4", "leaflet-contextmenu": "^1.4.0", "leaflet-editable": "^1.2.0", "leaflet-editinosm": "0.2.3", diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index 212a71b2..27129f4a 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -1060,7 +1060,7 @@ L.U.DataLayer = L.Evented.extend({ }, isVisible: function () { - return this.map.hasLayer(this.layer) + return this.layer && this.map.hasLayer(this.layer) }, canBrowse: function () {