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:
commit
1d80645eda
1 changed files with 4 additions and 2 deletions
|
@ -794,8 +794,10 @@ L.U.PathMixin = {
|
||||||
},
|
},
|
||||||
|
|
||||||
_redraw: function () {
|
_redraw: function () {
|
||||||
|
if (this.datalayer && this.datalayer.isVisible()) {
|
||||||
this.setStyle()
|
this.setStyle()
|
||||||
this.resetTooltip()
|
this.resetTooltip()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdd: function (map) {
|
onAdd: function (map) {
|
||||||
|
|
Loading…
Reference in a new issue