diff --git a/assets/js/maidenhead_grid.ts b/assets/js/maidenhead_grid.ts index 49ee23cc..fae3a13a 100644 --- a/assets/js/maidenhead_grid.ts +++ b/assets/js/maidenhead_grid.ts @@ -87,8 +87,8 @@ function drawGridSquare( const px = Math.abs(ne.x - sw.x) const minW = sub ? 25 : field ? 30 : 40 if (px > minW) { - // Subsquares show just the last 2 chars (e.g. "kp"), others show full label - const text = sub ? grid.substring(4, 6) : grid.substring(0, field ? 2 : 4) + // Show the full grid label at every level (e.g. "EM13sf" for a subsquare) + const text = field ? grid.substring(0, 2) : sub ? grid.substring(0, 6) : grid.substring(0, 4) const len = text.length const fs = Math.max(9, Math.min(sub ? 12 : 14, Math.round(px / (len * 1.2)))) layerGroup.addLayer(L.marker([c.center.lat, c.center.lon], {