mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-05 12:07:25 +00:00
fix(map): disable vertical map repetition — eliminate spurious vertical artifact lines
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.
This commit is contained in:
1 parent
5bf4546ee3
commit
84ba25c163
1 file changed
+5
@@ -927,6 +927,11 @@ private fun rememberMapViewWithLifecycle(): MapView {
|
|||||||
MapView(context).apply {
|
MapView(context).apply {
|
||||||
setMultiTouchControls(true)
|
setMultiTouchControls(true)
|
||||||
setUseDataConnection(false)
|
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)
|
setTileSource(tileSource)
|
||||||
minZoomLevel = getMinZoom(resources.displayMetrics.heightPixels, isVertical)
|
minZoomLevel = getMinZoom(resources.displayMetrics.heightPixels, isVertical)
|
||||||
maxZoomLevel = 7.0
|
maxZoomLevel = 7.0
|
||||||
|
|||||||
Reference in new issue
Block a user