diff --git a/src/HereMapViewController.ts b/src/HereMapViewController.ts index ccaa6fb..3a2c17f 100644 --- a/src/HereMapViewController.ts +++ b/src/HereMapViewController.ts @@ -315,13 +315,13 @@ export class HereMapViewController // ----- lifecycle ----------------------------------------------------------- async clearOverlays(): Promise { - await Promise.all([ - this.markerController.clear(), - this.polylineController.clear(), - this.polygonController.clear(), - this.groundImageController.clear(), - this.circleController.clear(), - this.rasterLayerController.clear(), + await this.clearOverlayControllers([ + this.markerController, + this.polylineController, + this.polygonController, + this.groundImageController, + this.circleController, + this.rasterLayerController, ]); }