From 84ba25c1634e4a061b6c63180c665bfddcafbefe Mon Sep 17 00:00:00 2001 From: atsunatsu Date: Fri, 11 Sep 2026 20:27:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(map):=20disable=20vertical=20map=20repetiti?= =?UTF-8?q?on=20=E2=80=94=20eliminate=20spurious=20vertical=20artifact=20l?= =?UTF-8?q?ines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit osmdroid's vertical (Y) map repetition wraps points below the viewport up to the top edge. Antarctica's full-circle ring then draws a full-height artifact line whenever its X range crosses the screen at low zoom. The map must never repeat vertically, so disable setVerticalMapRepetitionEnabled. --- .../main/java/com/rtbishop/look4sat/feature/map/MapScreen.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/feature/map/src/main/java/com/rtbishop/look4sat/feature/map/MapScreen.kt b/feature/map/src/main/java/com/rtbishop/look4sat/feature/map/MapScreen.kt index 5064d1fb..8d347a2a 100644 --- a/feature/map/src/main/java/com/rtbishop/look4sat/feature/map/MapScreen.kt +++ b/feature/map/src/main/java/com/rtbishop/look4sat/feature/map/MapScreen.kt @@ -927,6 +927,11 @@ private fun rememberMapViewWithLifecycle(): MapView { MapView(context).apply { setMultiTouchControls(true) setUseDataConnection(false) + // Vertical map repetition wraps points below the viewport up to the + // top edge (osmdroid Y-wrap). Antarctica's full-circle ring then + // draws a full-height artifact line whenever its X range crosses + // the screen at low zoom. The map must never repeat vertically. + setVerticalMapRepetitionEnabled(false) setTileSource(tileSource) minZoomLevel = getMinZoom(resources.displayMetrics.heightPixels, isVertical) maxZoomLevel = 7.0