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

(cherry picked from commit a71a79c)
  • Loading branch information
Wykks committed Jan 27, 2019
1 parent 4aa72dc commit 814ab15
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 814ab15

Please sign in to comment.