diff --git a/src/MapplsViewController.ts b/src/MapplsViewController.ts index 335a07b..24792f7 100644 --- a/src/MapplsViewController.ts +++ b/src/MapplsViewController.ts @@ -375,12 +375,14 @@ export class MapplsViewController // --- 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 {