diff --git a/umap/static/umap/js/modules/rendering/ui.js b/umap/static/umap/js/modules/rendering/ui.js index c4f913c3..9ac02f97 100644 --- a/umap/static/umap/js/modules/rendering/ui.js +++ b/umap/static/umap/js/modules/rendering/ui.js @@ -205,8 +205,11 @@ export const LeafletMarker = Marker.extend({ }, _redraw: function () { - this._initIcon() - this.update() + // May no be on the map when in a cluster. + if (this._map) { + this._initIcon() + this.update() + } }, getCenter: function () {