Skip to content

Commit

Permalink
fix(markerCluster): update change after data change
Browse files Browse the repository at this point in the history
fix #71
  • Loading branch information
Wykks committed Jan 27, 2019
1 parent 1a5f369 commit a71a79c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class MarkerClusterComponent implements OnChanges, OnDestroy, AfterConten
ngOnChanges(changes: SimpleChanges) {
if (changes.data && !changes.data.isFirstChange()) {
this.supercluster.load(this.data.features);
this.updateCluster();
}
}

Expand Down

0 comments on commit a71a79c

Please sign in to comment.