Skip to content

Commit

Permalink
fix custom cluster icon
Browse files Browse the repository at this point in the history
  • Loading branch information
asad-mlbd committed Oct 28, 2018
1 parent 9c63368 commit 7d5142d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/markerclusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1211,11 +1211,11 @@ ClusterIcon.prototype.useStyle = function() {
this.backgroundPosition_ = style['backgroundPosition'];
this.iconAnchor_ = style['iconAnchor'];

/* cluster url hack for verified cluster */
/* cluster url hack for verified cluster */
if(this.cluster_.isVarified) {
this.url_ = style['url'].replace(/balloon([0-9])/, 'verified-balloon$1');
this.url_ = style['url'].replace(/balloon\./, 'verified-balloon.');
} else if(this.cluster_.isBuzzed) { /* cluster url hack for buzzed cluster */
this.url_ = style['url'].replace(/balloon([0-9])/, 'buzzed-balloon$1');
this.url_ = style['url'].replace(/balloon\./, 'buzzed-balloon.');
}
};

Expand Down

0 comments on commit 7d5142d

Please sign in to comment.