Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Stamen map types and overlays don't load anymore

已关闭
#52 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@afarber 已经在做这个了。

开始于 2026年10月13日。

  • #56 来自 @afarber —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
50/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, kotlin

调研方向

Start with the MapType.STAMEN_TONER and MAP_TYPES.md entries, then PredefinedTileProviders.stamenTonerHybrid() and stamenTerrainLines(), and see how ApiKeyManager handles Thunderforest and Tracestrack today. Done means both Stamen map types and the two overlays use Stadia sources with an api_key parameter, the overlay shows the "API key required" message when the key is missing, and MAP_TYPES.md is updated. Confirm the key-handling choices with the maintainer first.

由索引模型根据 Issue 内容生成。

描述

Two related problems with the Stamen tiles:

  1. MapType.STAMEN_TONER and MapType.STAMEN_WATERCOLOR use tiles.stadiamaps.com, but Stadia answers 401 without an API key for anything that isn't a browser on an allowed domain. So in an app these map types show nothing.
  2. PredefinedTileProviders.stamenTonerHybrid() and stamenTerrainLines() still point to stamen-tiles.a.ssl.fastly.net, which Stamen shut down in 2023 (it answers 503 now).

Idea for a fix:

  • Add a "stadia" provider to ApiKeyManager (manifest key STADIA_API_KEY or setApiKey), like for Thunderforest and Tracestrack
  • Append ?api_key={apikey} to the two Stamen tile sources and mark them as requiring a key, so the usual "API key required" overlay shows when it's missing
  • Move the two overlays to the Stadia stamen_toner_lines and stamen_terrain_lines styles with the same key
  • Update MAP_TYPES.md, which still lists Stamen under the free types
主要语言
Kotlin
星标
4
派生
1
平均合并
1 小时 55 分钟
30 天内合并 PR
29

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。