From 1abef2f6c7d5f6e9bf6b163b26de1bf55a206b63 Mon Sep 17 00:00:00 2001 From: Masashi Katsumata Date: Sat, 7 Nov 2026 23:30:15 -0800 Subject: [PATCH] Clear registered strategy markers in clearOverlays() clearOverlays() cleared the provider's own six controllers only, so markers drawn through a StrategyMarkerController that an extension registered (MarkerClusterGroup, MarkerRenderingSupport) stayed on the map. It now goes through BaseMapViewController.clearOverlayControllers(), which clears the same six in the same order and then every other registered slotted controller. Needs the js-sdk-core release that adds clearOverlayControllers() (fix/clear-strategy); with the published ^0.3.x core this does not compile. --- src/LongdoViewController.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/LongdoViewController.ts b/src/LongdoViewController.ts index 90d571f..22ea3e0 100644 --- a/src/LongdoViewController.ts +++ b/src/LongdoViewController.ts @@ -375,12 +375,14 @@ export class LongdoViewController // --- 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 {