diff --git a/src/OpenLayersMapViewController.ts b/src/OpenLayersMapViewController.ts index 758fec8..906c62b 100644 --- a/src/OpenLayersMapViewController.ts +++ b/src/OpenLayersMapViewController.ts @@ -277,13 +277,13 @@ export class OpenLayersMapViewController } async clearOverlays(): Promise { - await Promise.all([ - this.markerController.clear(), - this.circleController.clear(), - this.polylineController.clear(), - this.polygonController.clear(), - this.groundImageController.clear(), - this.rasterLayerController.clear(), + await this.clearOverlayControllers([ + this.markerController, + this.circleController, + this.polylineController, + this.polygonController, + this.groundImageController, + this.rasterLayerController, ]); }