Skip to content

Online map: optional layer with worked/confirmed grid squares of the current band - #1248

Draft
ic8tem wants to merge 1 commit into
foldynl:masterfrom
ic8tem:grid-status-map
Draft

ic8tem wants to merge 1 commit into
foldynl:masterfrom
ic8tem:grid-status-map

Conversation

@ic8tem

@ic8tem ic8tem commented Nov 18, 2026

Copy link
Copy Markdown

Summary

Adds an optional Grid - Worked/Confirmed overlay to the online map. When it is enabled, the Maidenhead grid shows the 4-character squares worked (yellow) and confirmed (green) on the band currently in use, so the operator can see at a glance which squares are still missing on that band. This is especially useful on VHF/UHF.

Details

  • Uses the coloring that the Grid layer (L.maidenheadConfWorked) already supports and that the statistics map already uses through grids_worked / grids_confirmed. The new overlay is an empty L.layerGroup that only switches the band data on and off, so no new map rendering code is needed.
  • MapLayer::GridStatus, MapPageController::setBandGridStatus() and the JS setBandGridStatus() follow the existing layer pattern; the overlay state is stored like the other layers and is off by default.
  • OnlineMapWidget::refreshGridStatus() reads the log with one prepared, grouped query:
    • only when the band changes (setCurrentBand() is called on every rig frequency change, so the band is compared first), when a QSO is added, when the logbook is updated and when the station profile changes;
    • nothing is queried while the overlay is off; data are loaded when it is enabled.
  • A QSO counts for its gridsquare square and for the squares listed in vucc_grids.
  • Same rules as the DXCC statistics: satellite QSOs are excluded and only QSOs from the current station profile's DXCC are used.
  • Enabling the overlay also enables the Grid layer, which draws the squares.
  • No database schema or translation file changes (the new label will need translation at release time).

Testing

  • Builds with Qt 6.4 on Ubuntu 24.04 and with Qt 6.8.3 / MSVC 2022 on Windows (GitHub Actions in my fork).
  • The SQL query and the overlay on/off logic were checked with small offline tests.
  • Not yet verified: behavior on the real map and Qt5. Opened as a draft until I have tested it at my station.

Independent of #1247.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V4JxYbVDMZnx94tgmv5qmi

…current band

Add a "Grid - Worked/Confirmed" overlay to the online map. When enabled, the
Maidenhead grid shows the 4-character squares worked (yellow) and confirmed
(green) on the band currently in use, using the coloring that the Grid layer
(L.maidenheadConfWorked) already supports and the statistics map already uses.

- The squares are read from the log only when the band changes (not on every
  frequency change), when a QSO is added, when the logbook is updated and when
  the station profile changes; nothing is queried while the overlay is off.
- A QSO counts for its GRIDSQUARE square and for the squares in VUCC_GRIDS.
- Same rules as the DXCC statistics: satellite QSOs are excluded and only QSOs
  from the current station profile's DXCC are used.
- Enabling the overlay also enables the Grid layer, which draws the squares.
- The overlay is off by default and its state is stored like other layers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V4JxYbVDMZnx94tgmv5qmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant