diff --git a/Sources/MapConductorForOpenMobileMaps/OpenMobileMapsMapViewController.swift b/Sources/MapConductorForOpenMobileMaps/OpenMobileMapsMapViewController.swift index 38ca90b..ff68179 100644 --- a/Sources/MapConductorForOpenMobileMaps/OpenMobileMapsMapViewController.swift +++ b/Sources/MapConductorForOpenMobileMaps/OpenMobileMapsMapViewController.swift @@ -470,6 +470,9 @@ public final class OpenMobileMapsMapViewController: MapViewControllerProtocol { await circleController.clear() await groundImageController.clear() await rasterLayerController.clear() + // strategy(クラスタリングなど)が描いたマーカーも消す。OMM は自分の strategyManager を + // MarkerRenderingSupportKey に登録している(他プロバイダは state.serviceRegistry 経由で同じものに届く)。 + await strategyManager.clearMarkers() layers.clearAll() }