Skip to content

Commit 7d5142d

Browse files
author
S M Asad Rahman
authored
fix custom cluster icon
1 parent 9c63368 commit 7d5142d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/markerclusterer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,11 +1211,11 @@ ClusterIcon.prototype.useStyle = function() {
12111211
this.backgroundPosition_ = style['backgroundPosition'];
12121212
this.iconAnchor_ = style['iconAnchor'];
12131213

1214-
/* cluster url hack for verified cluster */
1214+
/* cluster url hack for verified cluster */
12151215
if(this.cluster_.isVarified) {
1216-
this.url_ = style['url'].replace(/balloon([0-9])/, 'verified-balloon$1');
1216+
this.url_ = style['url'].replace(/balloon\./, 'verified-balloon.');
12171217
} else if(this.cluster_.isBuzzed) { /* cluster url hack for buzzed cluster */
1218-
this.url_ = style['url'].replace(/balloon([0-9])/, 'buzzed-balloon$1');
1218+
this.url_ = style['url'].replace(/balloon\./, 'buzzed-balloon.');
12191219
}
12201220
};
12211221

0 commit comments

Comments
 (0)