Stamen map types and overlays don't load anymore
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 50/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- api, documentation, mobile
调研方向
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:
MapType.STAMEN_TONERandMapType.STAMEN_WATERCOLORuse 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.PredefinedTileProviders.stamenTonerHybrid()andstamenTerrainLines()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 keySTADIA_API_KEYorsetApiKey), 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_linesandstamen_terrain_linesstyles 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
-
bug core p3
难度 2/5 1-3 小时 新手友好度 70/100
RunanywhereAI/runanywhere-sdks#1083 ·
维护者通常 5 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 1/5 1 小时以内 新手友好度 88/100
SLNE-Development/surf-chat#134 ·