diff --git a/src/TomTomViewController.ts b/src/TomTomViewController.ts index c346957..1e837b8 100644 --- a/src/TomTomViewController.ts +++ b/src/TomTomViewController.ts @@ -246,12 +246,14 @@ export class TomTomViewController // --- Lifecycle --- async clearOverlays(): Promise { - await this.markerController.clear(); - await this.circleController.clear(); - await this.polylineController.clear(); - await this.polygonController.clear(); - this.groundImageController.clear(); - await this.rasterLayerController.clear(); + await this.clearOverlayControllers([ + this.markerController, + this.circleController, + this.polylineController, + this.polygonController, + this.groundImageController, + this.rasterLayerController, + ]); } /**