Roads: provide an abbreviated name attribute for labels

オープン
#645 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
data

調査の方向性

Read the roads layer and the related upstream work in planetiler#14 and this repository's #183 to understand existing abbreviation handling. Then assess how localized short names should be generated and exposed in the layer; done means the roads layer provides abbreviated names for the requested language forms and the behavior is covered by appropriate tests.

索引モデルが issue の本文から書いたものです。

説明

Long street names often don't fit along short road segments, so MapLibre drops the label entirely. Style-side workarounds are limited: there is no replace/regex in the style spec, and the maintainers point to doing this at tile generation time (maplibre/maplibre-gl-js#4198, maplibre/maplibre-gl-js#2059).

Would you consider emitting an abbreviated name (e.g. name_short / name:xx_short) in the roads layer? Related upstream work: onthegomap/planetiler#14 (abbreviation utility, based on OSRM's dictionaries), osm-americana/openstreetmap-americana#1470, and #183 here.

We currently do it client-side with a case expression for es/ca/fr (prefix: Calle → C., Avenue → Av.) and en (suffix: Street → St), and we'd be happy to contribute those tables.

主要言語
Java
スター
779
フォーク
111
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

protomaps/basemaps のほかの issue

protomaps/basemaps の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。