Villages with population ≥ 2000 get a higher min_zoom than smaller villages

未关闭 适合新手
#648 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
java

调研方向

从 Places.java 中的村庄规则开始,issue 在那里展示了人口为 2000 时的 minzoom 阈值。将这些规则与 isolated_dwelling、farm 和 allotments 对应的规则进行比较。调整阈值,使较大的地点不会被分配更晚的最小缩放级别,然后根据缩放级别 10.3 时 't Loo 和 Oldebroek 的示例检查受影响的缩放规则。

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

描述

Places with a population under 2000 are shown at a wider zoom level than larger towns. Concrete example is below. 't Loo (pop: 1255) is shown at this zoom level, but Oldebroek (6085) is not.

In Places.java, the zoomsIndex rules give larger places a later minimum zoom than smaller places of the same kind:

rule(with("pm:kind", "locality"), with("pm:kindDetail", "village"), use("pm:kindRank", 3), use("pm:minzoom", 10)),
rule(with("pm:kind", "locality"), with("pm:kindDetail", "village"), atLeast("pm:population", 2000),
  use("pm:minzoom", 11)),
rule(with("pm:kind", "locality"), with("pm:kindDetail", "hamlet"), use("pm:kindRank", 5), use("pm:minzoom", 11)),
rule(with("pm:kind", "locality"), with("pm:kindDetail", "hamlet"), atLeast("pm:population", 200),
  use("pm:minzoom", 12)),

The same pattern applies to isolated_dwelling, farm and allotments.

Location
https://maps.protomaps.com/#flavorName=light&lang=en&map=10.3/52.445/5.9

Screenshots
image

Required information

  • Browser: any
  • Renderer version: any
  • Tileset version and source: latest (checked in 20261127)
  • Style JSON or NPM version: any
主要语言
Java
星标
779
派生
111
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

protomaps/basemaps 的其他 Issue

查看 protomaps/basemaps 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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