Add rendering of "ref" for track roads #3654
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #2052
Changes proposed in this pull request:
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
z17 Before
z15 After
z17 After
Well-mapped rural area in Maine, USA
https://www.openstreetmap.org/#map=15/45.7108/-68.8079
z15 Before
z17 Before
z15 After
z17 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
After
Logan Pond Trail, Maine
https://www.openstreetmap.org/#map=16/45.8244/-68.8615
z16 Current
After