diff --git a/src/LongdoViewController.ts b/src/LongdoViewController.ts index 90d571f..22ea3e0 100644 --- a/src/LongdoViewController.ts +++ b/src/LongdoViewController.ts @@ -375,12 +375,14 @@ export class LongdoViewController // --- 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, + ]); } destroy(): void {