From aca40f710ed4cf492c636454ca22e71a69472f3a Mon Sep 17 00:00:00 2001 From: Masashi Katsumata Date: Sat, 7 Nov 2026 22:35:34 -0800 Subject: [PATCH] Remove overlay markers in clearOverlays() clearOverlays() cleared the shape and raster controllers and the marker tiles, but not the list of markers drawn as overlays (MapTilerMarkerOverlay), so markers below the tiling threshold stayed on the map after clearOverlays() (seen on the tablet). It now empties that list first, as the Longdo controller does. --- .../com/mapconductor/maptiler/MapTilerMapViewController.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/mapconductor/maptiler/MapTilerMapViewController.kt b/src/main/java/com/mapconductor/maptiler/MapTilerMapViewController.kt index d983065..d0fb9ab 100644 --- a/src/main/java/com/mapconductor/maptiler/MapTilerMapViewController.kt +++ b/src/main/java/com/mapconductor/maptiler/MapTilerMapViewController.kt @@ -323,6 +323,9 @@ class MapTilerMapViewController( } override suspend fun clearOverlays() { + // オーバーレイ経路のマーカー(MapTilerMarkerOverlay で描くもの)。Longdo と同じく + // 一覧を空にすれば Compose 側が外す。これが無いとタイル経路でないマーカーが残っていた。 + _markers.value = emptyList() rasterLayerController.clear() polylineController.clear() polygonController.clear()