feat(map): remember map display toggles and share them across weather layers - #554
Open
PiscesXD wants to merge 1 commit into
Open
feat(map): remember map display toggles and share them across weather layers#554PiscesXD wants to merge 1 commit into
PiscesXD wants to merge 1 commit into
Conversation
New(zh-Hant): 地圖選單的顯示設定會記住了——關掉的國界、縣市界、鄉鎮界、掃描範圍、地形起伏、鄉鎮名稱或街道圖層,重開 app 後維持原樣 New(en-US): the map's display toggles — world/county/township borders, scan range, relief, township names and the street overlay — stay as you left them New(zh-Hant): 各天氣圖層共用同一組邊界與掃描範圍開關,在其中一層調整,其他圖層即時跟著變 New(en-US): the border and scan-range toggles are shared across every weather layer, so a change on one applies to the others live
lowrt
approved these changes
Aug 25, 2026
PiscesXD
force-pushed
the
feat-sqlite-map
branch
from
August 25, 2026 09:08
bd0221d to
ce51078
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
地圖選單的顯示設定現在會記住了:關掉的國界、縣市界、鄉鎮界、掃描範圍、地形起伏、鄉鎮名稱或街道圖層,重開 app 後維持原樣;同時各天氣圖層共用同一組邊界與掃描範圍開關,在其中一層調整,其他圖層即時跟著變。
變更內容
💾 顯示設定持久化
MapReferenceOutlineController(core/settings/):一個共享、持久化的ChangeNotifier,管國界、縣市界、鄉鎮界、掃描範圍四個開關,寫入map.showGlobalOutline/map.showCountyOutline/map.showTownOutline/map.showScanRange四個 keyGsiOverlayController:街道圖層的 on/off 與子圖層群組選擇(map.gsiEnabled/map.gsiEnabledGroups)都持久化;防災圖層的強制開啟只影響當次進入,不會覆寫已儲存的值MapScaffold:地形起伏(map.showTerrain)與鄉鎮名稱(map.showTownLabels)持久化🔗 各天氣圖層共用開關
ValueNotifier副本,在其中一層調整,其他層不會跟著變SharedDeps.mapReferenceOutline)注入同一個 controller;AdminOutlineChrome/ScanRangeOverlayChrome改讀共享狀態,並在 attach 期間監聽——任一圖層改動,所有掛載中的圖層即時 resync🧪 測試更新
testReferenceOutline()harness(radar / qpesums / satellite / wind forecast 圖層與選單、GSI overlay、town labels 等)測試
tool/dev/test.sh test/features/map test/shared/map全綠(423 tests passed)備註