Skip to content

Load Stamen tiles from Stadia Maps with an API key - #56

Merged
afarber merged 1 commit into
mainfrom
stadia-api-key
Oct 13, 2026
Merged

afarber merged 1 commit into
mainfrom
stadia-api-key

Conversation

@afarber

@afarber afarber commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Fixes #52

Stadia answers 401 without a key, and the old Stamen server used by the two overlays is gone (503).

  • New "stadia" provider in ApiKeyManager, set with the de.afarber.openmapview.STADIA_API_KEY meta-data or ApiKeyManager.setApiKey("stadia", ...)
  • STAMEN_TONER and STAMEN_WATERCOLOR now require that key. Without it, the standard map shows with the "API key required" overlay, like for Thunderforest and Tracestrack
  • stamenTonerHybrid() and stamenTerrainLines() now load stamen_toner_lines and stamen_terrain_lines from Stadia. The key is read for every tile, so it also works when it is set after the provider was created. Stadia has no combined hybrid style anymore, so the toner overlay shows lines only, without labels
  • MAP_TYPES.md lists both Stamen types under the API key section now. MapType KDoc, Example11 and TESTING_UNIT.md are updated too

Tests: new Stadia cases in TileSourceTest and PredefinedTileProvidersTest, 461 tests pass, coverage stays at 81%.

- Add a "stadia" provider to ApiKeyManager (manifest key STADIA_API_KEY)
- STAMEN_TONER and STAMEN_WATERCOLOR send the key and show the usual
  "API key required" overlay when it is missing
- Move stamenTonerHybrid() and stamenTerrainLines() from the shut down
  Stamen server to the Stadia lines styles
- Update MAP_TYPES.md, the MapType KDoc and Example11
@afarber
afarber merged commit 6ef0d8c into main Oct 13, 2026
30 of 36 checks passed
@afarber
afarber deleted the stadia-api-key branch October 13, 2026 16:02
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.

Stamen map types and overlays don't load anymore

1 participant