diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index 8e826131..dc98448c 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -794,8 +794,10 @@ L.U.PathMixin = { }, _redraw: function () { - this.setStyle() - this.resetTooltip() + if (this.datalayer && this.datalayer.isVisible()) { + this.setStyle() + this.resetTooltip() + } }, onAdd: function (map) {