Style: draw `kind_detail=unclassified` a little wider than other minor roads

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

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
design

调研方向

从 styles/src/base_layers.ts 第 873–906 行附近开始,然后找到 roads_minor 和 roads_minor_casing 样式规则。检查它们的宽度如何随缩放级别变化,以及 kind_detail 如何使用;tiles 已经提供了 kind_detail=unclassified。完成标准是:unclassified 道路的渲染宽度略大于同色的其他 minor 道路,并且在所引用的缩放级别上能看出差异。

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

描述

Hello, and thank you for Protomaps.

The tiles keep the OSM value: highway=unclassified and highway=residential both become kind=minor_road, with the original value in kind_detail. The style reads kind_detail only to separate service (base_layers.ts L873-L906), so unclassified and residential look the same.

In rural areas, unclassified is often the road between villages, and residential the streets inside them (Key:highway: "Often link villages and hamlets"). When both look the same, you can't tell the link road from the village streets.

Would you consider a slightly wider line (same colour) for kind_detail=unclassified in roads_minor and roads_minor_casing? The data is already in the tiles, so it would only be a style change. CyclOSM does this (z16: 6 vs 4), and Organic Maps draws unclassified like tertiary.

I am happy to prepare a pull request if this direction is acceptable. Thank you.

protomaps-644-unclassified-vs-residential

Same view near Chiang Rai, Thailand (19.976, 99.774). Left: OSM ways coloured by class, unclassified in red, residential in green. Right: the map today, at zoom 14 and 16.

主要语言
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 摘要。