Merge pull request #1201 from umap-project/bump-leaflet

Bump Leaflet to 1.9.4
This commit is contained in:
Yohan Boniface 2023-07-11 22:45:23 +02:00 committed by GitHub
commit adb325bb79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

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