From 20690c08f6284a601b7c0b49faa4d06baea22e25 Mon Sep 17 00:00:00 2001 From: Ashley Hill Date: Wed, 16 Oct 2019 14:28:40 -0400 Subject: [PATCH] Use overlayLayer and overlayMouseTarget fixes #506 --- markerclustererplus/src/markerclusterer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/markerclustererplus/src/markerclusterer.js b/markerclustererplus/src/markerclusterer.js index e85b9935..dae1d76b 100644 --- a/markerclustererplus/src/markerclusterer.js +++ b/markerclustererplus/src/markerclusterer.js @@ -122,7 +122,6 @@ ClusterIcon.prototype.onAdd = function () { this.div_ = document.createElement("div"); this.div_.className = this.className_; this.eventDiv_ = this.div_.cloneNode(); - this.eventDiv_.className += ' event'; if (this.visible_) { this.show(); @@ -301,6 +300,7 @@ ClusterIcon.prototype.show = function () { this.syncDivStyle({ title: this.div_.title, + innerHTML: this.div_.innerHTML, }); } this.visible_ = true; @@ -386,6 +386,7 @@ ClusterIcon.prototype.syncDivStyle = function (vars) { } if (this.eventDiv_ && this.div_) { this.eventDiv_.style.cssText = this.div_.style.cssText; + this.eventDiv_.style.opacity = 0; } }