Skip to content

Commit

Permalink
performance: removed unnecessary expensive loop over features
Browse files Browse the repository at this point in the history
  • Loading branch information
Connum committed Feb 24, 2017
1 parent acda46b commit 8884026
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/datalayerclusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1172,11 +1172,6 @@ DataLayerClusterer.MARKER_CLUSTER_IMAGE_EXTENSION_ = document.implementation.has
DataLayerClusterer.prototype.init_ = function () {
this.setupStyles_();

if (this.setProperty_) {
this._dataLayer.forEach(function (feature) {
feature.setProperty('in_cluster', true);
});
}
if (this.map !== null) {
this.setMap(this.map);
}
Expand Down

0 comments on commit 8884026

Please sign in to comment.