Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rendering of "ref" for track roads #3654

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

jeisenbe
Copy link
Collaborator

Related to #2052

Changes proposed in this pull request:

  • Add rendering of "ref" codes and numbers for track roads, using a similar style as used for residential and unclassified roads

Explanation

Track roads, tagged with highway=track, are used to access agricultural and forestry areas. Many of these small roads are unnamed, but in some areas it is common to use a reference number or string of letter and numbers to refer to such roads. For example, Forest Service roads in North America often have a ref, without a name, or sometimes both.

Adding rendering of the ref will help with routing in these areas. The style of rendering is rather subtle, using the same style as the name text label rendering.

One issue is that the ref layer is rendered first, so if there is not space for both the name and the ref, the ref alone will be rendered. But in practice, most track roads with refs are long, so this problem is much more common on highway=residential, which already has a ref rendering. If the ref is more commonly used than the name, this could be seen as a benefit.

Test rendering with links to the example places:

Allotments in the city of Hamburg, Germany
https://www.openstreetmap.org/#map=15/53.6185/9.9781
z15 Before
z15-hamburg-ref-master
z17 Before
z17-hamburg-allotments-master

z15 After
hamburg-ref-track-15 53 6185 9 9782
z17 After
z17-hamburg-allotments

Well-mapped rural area in Maine, USA
https://www.openstreetmap.org/#map=15/45.7108/-68.8079
z15 Before
z15-pole-line-master
z17 Before
pole-line-trail-master-z17

z15 After
z15-pole-line-trail-after-15 45 7108 -68 8079
z17 After
z17-pole-line-trail-17 45 69977 -68 79609-after
https://www.openstreetmap.org/#map=17/45.69977/-68.79609

Old State Road, Maine
https://www.openstreetmap.org/#map=18/45.80773/-68.90040
z18 Before
old-state-road-master
After
z18-old-state-road-after-18 45 80773 -68 90040

Logan Pond Trail, Maine
https://www.openstreetmap.org/#map=16/45.8244/-68.8615
z16 Current
z16-logan-pond-master
After
z16-logan-pond-trail-after-16 45 8244 -68 8615

@Penegal
Copy link
Contributor

Penegal commented Feb 22, 2019

Is this in production? If so, it seems to not work everywhere, for instance here: https://www.openstreetmap.org/#map=17/48.34782/6.13247

@kocio-pl
Copy link
Collaborator

No, the deployment has not yet happened for some reason: openstreetmap/chef#218

@Penegal
Copy link
Contributor

Penegal commented Feb 22, 2019

Ok, thanks and sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants