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

Aperta Adatta ai principianti
#644 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
design

Direzione di ricerca

Inizia in styles/src/base_layers.ts intorno alle righe 873–906, poi trova le regole di stile roads_minor e roads_minor_casing. Controlla come variano le loro larghezze in base allo zoom e come viene usato kind_detail; i tiles forniscono già kind_detail=unclassified. Il lavoro è completato quando le strade unclassified vengono visualizzate leggermente più larghe delle altre strade minori dello stesso colore, con una differenza visibile ai livelli di zoom indicati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
779
Fork
111
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di protomaps/basemaps

Tutte le issue di protomaps/basemaps

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.