-
Notifications
You must be signed in to change notification settings - Fork 823
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 for man_made=pipeline ways #4070
Conversation
Select pipelines with location Also select pipelines with bridge Adjust pipeline width by zoom level
Adjust pipeline width Wider especially at lower zoom levels, but outer dash not as wide Change substance=water pipeline center to river-color
Also remove line-cap: square which does not work
The property minimum-distance is deprecated and cannot be used with the new properties margin and repeat-distance
Also thinner line at z14
Colors enclosed in backticks gets a rendering on github: |
Thanks for doing the PR on this. I was planning on doing it, but I got busy with other things. It looks good though. The rendering on higher zoom levels doesn't look as bad as I remember either. |
That looks OK for me. |
I've adjusted it slightly since then: the lines are about 1/3rd narrower than previously. |
I think this is too heavy in particular at the lower zoom levels compared to other features - i.e. roads, paths and railways. I would also try reducing the gaps between the segments - they look almost like bridges over some linear feature to me. |
It needs to be a thinner line or a lighter color? Is this at z14 and z15 only, or also at z16?
The gaps in the same direction as the way? Currently they are 1 pixel wide at all zoom levels. Perhaps that is okay at z18 and z19, but I can try reducing the gap to 0.5 pixel at lower zoom levels. I do think that the "pipeline-segment" shape helps with recoginizing that these are pipelines rather than some sort of highway or railway or waterway. |
I think the problem is strongest at z14 obviously but it is still an issue at z16 - less because of the drawing width but more because of the strong color. I would probably not draw a centerline at z16 because that is mostly visual noise anyway.
Your dasharray has a one pixel gap at start and end leading to a two pixel gap as i read it.
I think it is a concept that can work - but it is visually heavy which makes adjusting it in a way that balances with the rest of the map somewhat tricky. |
OK, I've made some changes. I realize now that this was still using the same dark gray color as aerialways and mainline railways, rather than something more similar to the minor types of railways. So I've changed the line color from I've also tried adjusting the width of the gap between pipeline "segments", but if we make it 1 pixel the gap is too blurry when the pipeline is on a diagonal (e.g. NW to SE), at standard resolution. If we were using 2x resolution (retina tiles) then this could be an option. Water pipeline, Corsica: Retina (2x resolution) versions: Wow, changing to 2x resolution looks so much better. |
Industrial pipelines (gas and unspecified) in Singapore port area.
z16 - Jurong Island - https://www.openstreetmap.org/#map=14/1.2660/103.6744 Water pipeline in Singapore |
Oil pipelines in port terminal, Riga, Latvia: Closely parallel pipelines (heating, steam/hot water) in industrial areas of Riga, Latvia:
|
Any comments about the colors for the 3 types of substances that will be rendered? The centerline at z17 to z19 is in
I tried to look up common colors used to identify gas vs oil pipeline, but generally they use the same symbols for flammable liquids / gases: yellow or brown. Another option would be to use a low-chroma purple instead of gray for gas. I tried yellow, but this would be a little too similar to highway=secondary |
At z14 and z15 the spaces between segments aren't too visible for me, so maybe they could be a bit bigger or the segment endings could be wider? Other than that it looks OK to me. |
Above (#4070 (comment)) there was a request to reduce the gaps between segments, rather than increase them, and also to make the line less prominent. So perhaps the current rendering is the best I can do, as a compromise? |
I consider it a minor problem, so I don't mind merging it. We can tune it later if needed. |
@pnorman Is it ok if I use "rebase and merge"? This will keep the history, but organize it all in one part of the log, at the moment it is merged. |
If you want to, but there's no need to |
Here's examples of the name label rendering, which starts at z17: https://www.openstreetmap.org/#map=17/44.80862/6.56654 |
Fixes #640
Related to #3180 and #3179
Changes proposed in this pull request:
Add rendering of man_made=pipeline ways from z14 when tagged with location=overground, =overhead, =surface, or =outdoor, or with documented bridge=* values.
Add different renderings for substance=water, substance=oil and substance=gas from z17:
#c1c1c1
Lch(78,0,0)#d7bd93
Lch(78,25,83),@water-color
(currently#aad3df
)There are several "substances" related to heat, like "steam", "hot water" and "heat" but no consensus yet, and no other substances are common yet.
This feature is rendering in the aerialways layers, so that above-ground pipelines will render above roads but below bridges.
Since the last test images in #640 I've adjusted the rendering to make the line thinner at low zoom levels and to make the outline thinner at higher zoom levels.
Test rendering with links to the example places:
Heating pipelines in Latvia:
z15
z16
z17
z18
z19
Other industrial pipelines in Latvia
https://www.openstreetmap.org/#map=14/56.9818/24.1827
z14
Oil pipelines in Latvia:
https://www.openstreetmap.org/#map=17/57.04748/24.08014
z14
z15
z16
z17 - oil color now visible
z19
Water pipeline, Corsica
https://www.openstreetmap.org/#map=17/41.70543/9.05265
z14
z16
z17
z18
z19
Gas pipeline, Singapore
https://www.openstreetmap.org/#map=17/1.2313/103.7527
z17
z18
z19