Skip to content

Commit

Permalink
revert removing zone.onMicrotaskEmpty to cleanup cluster correctly on…
Browse files Browse the repository at this point in the history
… zoom, closes #188

* need to figure out, how to replace for #165
  • Loading branch information
marcjulian committed Aug 22, 2024
1 parent 0660a65 commit f94af53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/ngx-maplibre-gl/src/lib/map/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,9 @@ export class MapService {
this.mapInstance.setStyle(options.style!);
}

this.subscription.add(this.applyChanges());
this.subscription.add(
this.zone.onMicrotaskEmpty.subscribe(() => this.applyChanges())
);
}

private removeMarkers() {
Expand Down

0 comments on commit f94af53

Please sign in to comment.