File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -859,6 +859,9 @@ Cluster.prototype.addMarker = function(marker) {
859859
860860 marker . isAdded = true ;
861861 this . markers_ . push ( marker ) ;
862+ this . isVarified = this . isVarified || / v e r i f i e d / . test ( marker . icon ) ;
863+ this . isBuzzed = this . isBuzzed || / b u z z e d / . test ( marker . icon ) ;
864+
862865
863866 var len = this . markers_ . length ;
864867 if ( len < this . minClusterSize_ && marker . getMap ( ) != this . map_ ) {
@@ -1207,6 +1210,13 @@ ClusterIcon.prototype.useStyle = function() {
12071210 this . textSize_ = style [ 'textSize' ] ;
12081211 this . backgroundPosition_ = style [ 'backgroundPosition' ] ;
12091212 this . iconAnchor_ = style [ 'iconAnchor' ] ;
1213+
1214+ /* cluster url hack for verified cluster */
1215+ if ( this . cluster_ . isVarified ) {
1216+ this . url_ = style [ 'url' ] . replace ( / b a l l o o n ( [ 0 - 9 ] ) / , 'verified-balloon$1' ) ;
1217+ } else if ( this . cluster_ . isBuzzed ) { /* cluster url hack for buzzed cluster */
1218+ this . url_ = style [ 'url' ] . replace ( / b a l l o o n ( [ 0 - 9 ] ) / , 'buzzed-balloon$1' ) ;
1219+ }
12101220} ;
12111221
12121222
You can’t perform that action at this time.
0 commit comments