Skip to content

Commit

Permalink
map clustering rule fix for style
Browse files Browse the repository at this point in the history
  • Loading branch information
asad-mlbd committed Mar 7, 2019
1 parent 3d1842e commit cfb2ea8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/markerclusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,11 @@ Cluster.prototype.addMarker = function(marker) {
}

marker.isAdded = true;
this.markers_.push(marker);
this.isVarified = this.isVarified || /verified/.test(marker.icon);
this.isBuzzed = this.isBuzzed || /buzzed/.test(marker.icon);
this.markers_.push(marker);

var markerIconUrl = typeof(marker.icon) === 'string' ? marker.icon : marker.icon.url;
this.isVarified = this.isVarified || /verified/.test(markerIconUrl);
this.isBuzzed = this.isBuzzed || /buzzed/.test(markerIconUrl);


var len = this.markers_.length;
Expand Down

0 comments on commit cfb2ea8

Please sign in to comment.