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 () {
|
||||||
this.setStyle()
|
if (this.datalayer && this.datalayer.isVisible()) {
|
||||||
this.resetTooltip()
|
this.setStyle()
|
||||||
|
this.resetTooltip()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdd: function (map) {
|
onAdd: function (map) {
|
||||||
|
|
Loading…
Reference in a new issue