Merge pull request #1576 from umap-project/fix-redraw-zoomend

fix: do not try to reset tooltip of feature not on map
This commit is contained in:
Yohan Boniface 2024-02-05 07:13:51 +01:00 committed by GitHub
commit 1d80645eda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -794,8 +794,10 @@ L.U.PathMixin = {
}, },
_redraw: function () { _redraw: function () {
this.setStyle() if (this.datalayer && this.datalayer.isVisible()) {
this.resetTooltip() this.setStyle()
this.resetTooltip()
}
}, },
onAdd: function (map) { onAdd: function (map) {