diff --git a/src/MapKitViewController.ts b/src/MapKitViewController.ts index cf6876e..ded6f8a 100644 --- a/src/MapKitViewController.ts +++ b/src/MapKitViewController.ts @@ -317,12 +317,14 @@ export class MapKitViewController // --- Lifecycle --- async clearOverlays(): Promise { - await this.markerController.clear(); - await this.circleController.clear(); - await this.polylineController.clear(); - await this.polygonController.clear(); - await this.groundImageController.clear(); - await this.rasterLayerController.clear(); + await this.clearOverlayControllers([ + this.markerController, + this.circleController, + this.polylineController, + this.polygonController, + this.groundImageController, + this.rasterLayerController, + ]); } destroy(): void {