-
Notifications
You must be signed in to change notification settings - Fork 831
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
Create new layer for "ref" of minor roads and paths #3709
Conversation
This makes the ref lables at z17 and up consistent between track roads, paths, residential and unclassified highways
Does anyone have time to look at this PR? |
I don't have much time lately, but looking at the rendering this is a good idea. |
I am sorry for the long wait - I looked at this and am concerned about two things:
|
The "ref" for runways (and taxiways) is only rendered at z15 and greater, and it's rendered one time at the center of the way. So this is only an issue for airports where a named road crosses the center point a runway or taxiway. I can think of several examples of paths and roads that cross under or level with runways (e.g.: Gibraltar, LAX, some airstrips in my area) but I don't know of any where the road is close enough to the runway center for this to cause interference with the label, so I doubt this is an issue in practice. However, It would be easy enough to keep the aeroways in the main
This is the current situation with "ref" on residential, unclassified and track roads. The PR only makes 2 tiny adjustments for consistency:
If we want the 'ref' to be clearly distinct from the road name label on this minor roads, there would need to be a more significant distinction than the halo radius or a 1 point font size difference at z18 and z19. I could try rendering the ref with italic font, perhaps? Or should this be a separate PR? |
Does anyone else have comments about this? Should I move the aeroways back to the earlier layer? Does the "ref" label need to be more clearly distinguished from the "name" label? |
|
Would be good to have another opinion on this, maybe from @matkoniecz, @kocio-pl or @sommerluk. I mentioned two points of concern, but these are not essential for me. Another look at this from someone else would be useful. |
Okay. I didn’t look to the code. But the idea to unify the Using the italic font instead of the regluar font for |
@sommerluk - any thoughts on including aeroway refs in this new layer
or not? I'm happy to change it, but I hoped it could be slightly
better performance this way.
|
I've moved aeroway ref rendering back to the original layer (roads-text-ref) |
Test renderings with oblique font for ref. It's a subtle change: highway=unclassified with name and ref - Basilicata, Italy highway=residential with name and ref - Basilicata, Italy |
Any comments on the new commit? |
@imagico, your original 2 points of concern were addressed by the most recent commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work fine - and while i am still not quite sure if this is ultimately a good way to render road refs in the long term and also if refs, in particular on tracks, are actually used in a consistent way it is an improvement from the current situation and does not seem to cause specific new issues.
@imagico has approved this now, and it looks like @kocio-pl and @sommerluk were in favor, so I'm going to merge this PR tomorrow, once I figure out when the changelog should be updated. |
It's not necessary, but a big help when releasing. Just edit the changelog directly on master. |
Partially replaces PR #3663
Follow-up to PR #3654
Changes proposed in this pull request:
Move unclassified, residential and track highways, and aeroways "ref" to a later layer, after name labels are rendered
Change text-halo to standard size for highway=unclassified/residential refs and aeroway refs
Change residential / unclassified road "ref" size to 11 point at z17, to be the same size as the name text labels at this zoom level and higher.
Explanation
1) The minor roads, aeroways, and tracks with text-based ref labels currently render in the same layer as the shields for major roads.
2) The "ref" labels rendering for residential/unclassified roads needs minor adjustments
At z17, the "name" text label increases to 11pt font size, but the ref does not change size till z18 currently. This should be adjusted so that the "ref" label is the same size as the name label, as at z15 and z16.
3) The "ref" halo needs to be changed to standard size.
Right now it is 2 pixels wide, which would overlap with the casing at certain zoom levels.
Test rendering with links to the example places:
highway=unclassified with name and ref - Basilicata, Italy




https://www.openstreetmap.org/#map=17/40.3776321/15.7281581
Before z17
z18
After z17
z18
highway=residential with name and ref - Basilicata, Italy




https://www.openstreetmap.org/#map=17/40.1412792/16.0893142
Before z17
z18
After z17
z18