diff --git a/src/ArcGISMapViewController.ts b/src/ArcGISMapViewController.ts index bfca775..365475a 100644 --- a/src/ArcGISMapViewController.ts +++ b/src/ArcGISMapViewController.ts @@ -383,12 +383,14 @@ export class ArcGISMapViewController } async clearOverlays(): Promise { - 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, + ]); } destroy(): void {