Skip to content

feat: offline map download via Stadia Maps (replaces disabled CartoDB)#5

Open
FusedStamen wants to merge 11 commits intoLOCOSP:mainfrom
FusedStamen:feat/offline-map-stadia
Open

feat: offline map download via Stadia Maps (replaces disabled CartoDB)#5
FusedStamen wants to merge 11 commits intoLOCOSP:mainfrom
FusedStamen:feat/offline-map-stadia

Conversation

@FusedStamen
Copy link
Copy Markdown

What this does

Re-enables the offline map download feature using Stadia Maps as the tile provider, replacing the previously disabled CartoDB Dark Matter source.

Changes

tile_manager.py

  • Replaced CartoDB URL with Stadia Maps Alidade Smooth Dark style
  • Added _load_stadia_key() to read STADIA_API_KEY from secrets.conf
  • Added _tile_url() helper that appends API key to tile requests
  • Updated User-Agent string

app.py

  • Removed WIP disabled block from _dl_map handler
  • Pressing [m] starts download, pressing again cancels
  • Removed (WIP) from menu label

Setup

Add to secrets.conf:
STADIA_API_KEY=your_key_here
Free account at https://stadiamaps.com — no bulk download restrictions.

Tested on

  • uConsole CM4, Watertown MA
  • 44 tiles downloaded, 0 errors
  • Map renders correctly over game overlay

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