Skip to content

Commit

Permalink
Use overlayLayer and overlayMouseTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleahhill committed Oct 16, 2019
1 parent 9dacc7e commit 20690c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion markerclustererplus/src/markerclusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -301,6 +300,7 @@ ClusterIcon.prototype.show = function () {

this.syncDivStyle({
title: this.div_.title,
innerHTML: this.div_.innerHTML,
});
}
this.visible_ = true;
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 20690c0

Please sign in to comment.