Country labels silently fall back to default zooms when the Wikidata join fails
还没有人认领这个 Issue。
评估
调研方向
Start in tiles/src/main/java/com/protomaps/basemap/layers/Places.java, especially Places.getZoomsPops(), and compare its behavior with the curated entries in tiles/src/main/resources/places.csv. Inspect how place=country features are handled when wikidata is absent, using the affected country examples and hosted tile details as a reproduction reference. Done means the missing Wikidata join no longer silently removes the intended low-zoom country labeling.
由索引模型根据 Issue 内容生成。
描述
Location
https://xue.ringsaturn.me/?model=gfs&type=precip#map=1.65/28/128
Screenshots
Required information
- Browser: Safari&Chrome
- Renderer version: MapLibre GL JS 5.24.0
- Tileset version and source: hosted Protomaps API, v4
- Style JSON or NPM version
The basemap generator uses the OSM wikidata tag to join place features with the curated zoom configuration in places.csv.
When a place=country feature temporarily loses its wikidata tag, Places.getZoomsPops() silently skips the curated configuration and retains the default zoom values. This can remove major country labels from low-zoom tiles without producing a visible build error or warning.
This occurred in an OSM data incident affecting five country nodes. The missing tags have since been restored upstream, but the currently hosted Protomaps v4 tiles still demonstrate the failure mode.
The current code only applies a curated configuration when the feature contains a matching Wikidata ID:
https://github.com/protomaps/basemaps/blob/a50c699adc60a45c899971b1e11275e61f13bfbf/tiles/src/main/java/com/protomaps/basemap/layers/Places.java#L401-L426
China has this entry in places.csv:
Q148,1,5,-1
However, in the currently hosted v4 tiles:
- China is absent from the
placeslayer in the relevant z1 tile. - The China feature in tile
z5/25/12haskind=country. - It has
min_zoom=6. - It has no
wikidataproperty.
The feature therefore behaves as if the curated Q148 entry did not exist.
List of affected counties:
| Country | OSM node | Wikidata ID | Curated zoom range |
|---|---|---|---|
| China | 424313582 | Q148 | z1-z5 |
| Bangladesh | 432424937 | Q902 | z2-z7 |
| Bhutan | 424311028 | Q917 | z3-z8 |
| United Arab Emirates | 424310703 | Q878 | z3-z8 |
| South Africa | 424298167 | Q258 | z1-z6 |
Upstream status:
The OSM community investigated the incident here:
https://community.openstreetmap.org/t/146752
The five missing Wikidata tags were restored on 2026-08-24:
- 主要语言
- Java
- 星标
- 779
- 派生
- 111
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
protomaps/basemaps 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 5/5 一周以上 新手友好度 18/100
-
难度 5/5 一周以上 新手友好度 38/100
查看 protomaps/basemaps 的全部 Issue
相似的 Issue
-
Android Bug Core Drape
难度 2/5 1-3 小时 新手友好度 77/100
organicmaps/organicmaps#14449 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
openhab/openhab-addons#22512 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
objectionary/lints#1871 ·
维护者通常 1 天内回复
-
help wanted maintenance
难度 2/5 1-3 小时 新手友好度 82/100
apache/maven-war-plugin#694 ·
维护者通常 1 天内回复
-
help wanted maintenance
难度 2/5 1-3 小时 新手友好度 78/100
apache/maven-resolver-ant-tasks#219 ·
维护者通常 1 天内回复