diff --git a/src/MapboxViewController.ts b/src/MapboxViewController.ts index fba6ec9..14a1167 100644 --- a/src/MapboxViewController.ts +++ b/src/MapboxViewController.ts @@ -262,12 +262,14 @@ export class MapboxViewController // --- 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, + ]); } /**