mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
fix(map): skip labels on worked cells — bright-yellow 4-char text on green fill read as 'green too bright'
The previous fix skipped grid LINES through worked cells, but each worked cell still got a bright-yellow (alpha 220 + black shadow) 4-char label drawn dead center on the green fill at zoom>=7. Field zoom never shows this because 2-char labels sit at field centers and almost never overlap a worked 2x1 square. Now worked cells stay completely label-free, matching the field-zoom look.
This commit is contained in:
1 parent
86048ee1fd
commit
7afce7ee68
2 files changed
+7
-2
No files matched your search
@@ -273,6 +273,11 @@ class MaidenheadGridOverlay : Overlay() {
|
|||||||
val xRight = projectionToX(projection, lon + cellLon, centerLon, worldWidthPx) ?: continue
|
val xRight = projectionToX(projection, lon + cellLon, centerLon, worldWidthPx) ?: continue
|
||||||
if (xRight < 0f || xLeft > canvas.width) continue
|
if (xRight < 0f || xLeft > canvas.width) continue
|
||||||
val label = cellLabel(lat, lon, zoom)
|
val label = cellLabel(lat, lon, zoom)
|
||||||
|
// Worked cells stay label-free: a bright-yellow 4-char label
|
||||||
|
// centered on a green fill reads as "the green got brighter"
|
||||||
|
// and breaks consistency with field zoom, where 2-char labels
|
||||||
|
// sit at field centers and almost never overlap a worked cell.
|
||||||
|
if (label in workedGrids) continue
|
||||||
canvas.drawText(label, (xLeft + xRight) / 2f, yCenter, labelPaint)
|
canvas.drawText(label, (xLeft + xRight) / 2f, yCenter, labelPaint)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[versions]
|
[versions]
|
||||||
#noinspection UnusedVersionCatalogEntry
|
#noinspection UnusedVersionCatalogEntry
|
||||||
appVersionCode = "460"
|
appVersionCode = "461"
|
||||||
#noinspection UnusedVersionCatalogEntry
|
#noinspection UnusedVersionCatalogEntry
|
||||||
appVersionName = "4.4.6-ba7opf.9.9"
|
appVersionName = "4.4.6-ba7opf.9.10"
|
||||||
#noinspection UnusedVersionCatalogEntry
|
#noinspection UnusedVersionCatalogEntry
|
||||||
compileSdk = "37"
|
compileSdk = "37"
|
||||||
#noinspection UnusedVersionCatalogEntry
|
#noinspection UnusedVersionCatalogEntry
|
||||||
|
|||||||
Reference in new issue
Block a user