-
Notifications
You must be signed in to change notification settings - Fork 819
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
Water slide #3346
Water slide #3346
Conversation
water.mss
Outdated
[attraction = 'water_slide'] { | ||
[zoom >= 15] { | ||
[zoom >= 17] { | ||
bridgecasing/line-color: saturate(darken(@water-color, 40%), 30%); |
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.
Actually, I'm not sure what the prefix "bridgecasing" references to here. Is it really needed?
water.mss
Outdated
[zoom >= 18] { bridgecasing/line-width: 3.5; } | ||
[zoom >= 19] { bridgecasing/line-width: 7; } | ||
} | ||
water/line-color: @water-color; |
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.
Actually, I'm not sure what the prefix "water" references to here. Is it really needed?
project.mml
Outdated
AND (bridge IS NULL OR bridge NOT IN ('yes', 'aqueduct')) | ||
WHERE (waterway IN ('river', 'canal', 'stream', 'drain', 'ditch', 'wadi') | ||
AND (bridge IS NULL OR bridge NOT IN ('yes', 'aqueduct'))) | ||
OR attraction IN ('water_slide') |
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.
Is it okay after all to use the "water-lines" for the water slides?
I wonder why you place the symbol at the beginning of the slide? Usually here, symbols are in the middle of the feature. |
Thanks for this PR. I'm not sure what the icon is supposed to be but it's probably unnecessary anyway. What zoom level are you starting from? If I'm reading the code correctly z15 might be too early. |
Hi @johsin18 Thanks for making a Pull Request. You’re welcome! While I didn’t do neither a cartographic nor a code review (and don’t have time to do it currently), as a first impression I feel this is a feature for starting rather with zoom level 18 or 19. Best regards and thanks again for the PR! |
@johsin18 My remarks:
Thanks for this PR and good luck! :) PS. There should be a way of |
perhaps we need a bridge like border. In fact a slide is kind of a bridge |
Thanks for all your comments.
Can you please comment on the code (and my questions added as comments there)? |
So I have made some of the proposed changes, simplified the code, and moved everything to amentiy-points.mss, which seems to make more sense. It is rendered from zoom level 16 now, due to the usual size of such slides. I show screenshots on are more complex example: How could I make the junction at the very top smoother? It's common to assemble as slide from multiple ways in multiple layers, as you would have self-intersecting ways otherwise. Should/could they be combined with some kind of relation? |
openstreetmap-carto.style
Outdated
@@ -14,6 +14,7 @@ node,way admin_level text linear | |||
node,way aerialway text linear | |||
node,way aeroway text polygon | |||
node,way amenity text polygon | |||
node,way attraction text polygon |
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.
I'm not sure if and how this works. Typically we don't change this file, since it would require database reload, which is very time consuming and is rarely done on OSMF servers.
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.
In cases when the column is not defined when creating database, we use the hstore column with construction tags->'foobar'
, see for example this very short PR with icao
and iata
value check: https://github.com/gravitystorm/openstreetmap-carto/pull/2674/files
I'm not sure what works better - water with casing or pitch with casing. |
Ok I have removed the change to openstreetmap-carto.style. |
@kocio-pl Notice that function of water slides is to allow people to fastly flow down by water and gravity, not to just move water from one place to another. It makes water slides closer to running track than a typical water stream ;) |
Thanks for your proposal, @johsin18! However, I still think this is too specific for a general purpose map, and I don't think we should accept this PR. |
It's also not clear to me what the usecase of rendering waterslides is. |
sent from a phone
On 16. Aug 2018, at 17:05, Matthijs Melissen ***@***.***> wrote:
It's also not clear to me what the usecase of rendering waterslides is.
details like this help to make the map look better (ideally) and help people to orient theirselves on the map. Certainly this isn’t aiming at routing.
|
After some time (a year?) contemplating use case idea, I'm starting to think this is not the best tool for making general map using grass root data. For me it's rather about reflecting the reality, especially "on the ground" truth (with some exceptions like tunnels), secondary aim is the quick check what is the state of database (rough feedback loop on completeness and quality). Maybe I would see use cases as a third level - if we have some problem with too much data, we can think how to filter them. In case of waterslides (1) this is what's visible on the ground, (2) it helps to check if the tagging is there and (3) it probably never competes with some other objects in such places, so no need to filter it other than using scaling rule (initial zoom level should be proportional to the typical size). |
waterslides also often quite significant in the landscape/surroundings as they have to be higher if they should be longer
|
All bridges have a black stroke. Even water bridges: Lines 134 to 144 in 14e9349
|
Use cases :
Really, pretty close to the usecases of rendering swimming pools or pitches. I like blue better. Swimming pools aren't for holding water, they're for swimming in. Why aren't they pitch green? Also, I think line-join: round;
line-cap: round; would look good. |
So maybe the blue line with a black (bridge-like) outline? BTW: it's amazing to me that this PR attracts so much attention. I don't understand why, but I'm happy with that. |
Because this summer is so hot? I prefer the pitch colour. As said before, the prime function is to slide. Water is just the lubricant, not the medium as in the pool. The pitch colour would also apply to dry slides where people sit on a rag. |
Ok so I changed the casing color to black, as there seems to be a consensus on that. |
Could you render this version? It makes a lot of sense to make visualization of every change. |
Is it possible to not render black outline on ways ends, but only on its sides? Water slides are open at start point and end point, so lack of outline there would be better visualisation of reality. |
keeping the ends open is also important to have no lines between segments (probably the segments are ther for different layer tags). Thus this is better now in this aspect also. |
So would please somebody merge this PR? In the upcoming weeks I will have little time to further work on this. |
Other examples with new rendering: https://www.openstreetmap.org/#map=19/47.42822/9.66942 https://www.openstreetmap.org/way/591252087#map=19/54.11311/22.93798 |
text-halo-fill: @standard-halo-fill; | ||
text-placement: line; | ||
text-vertical-alignment: middle; | ||
text-repeat-distance: @waterway-text-repeat-distance; |
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.
I feel this is not needed for such short features.
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.
I tried to remove it, but then I got the name twice even on quite short slides.
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.
I see - surprising side effect. 😄
looks visually good to me |
Thanks for the code and nice tuning, it made people really interested. 😄 |
@johsin18 Big thanks for this PR! If you will have some time and will in future, please look at task lists in #3298 (comment) and #3298 (comment). Maybe there is something which you could help us with :) |
I've just found a place with many water slides mistagged as streams: |
We should wait til the release is through, so we can tell him how much better they would have looked if he hadn't tagged for the renderer so blatantly ;-) |
Fixes #3335
Changes proposed in this pull request:
This is more a proof of goodwill, probably both the rendering and the code have to be further improved, as I'm a complete newbie to this.
In particular, the marker is hidden unter the slide, how can I fix that? However, I'm not so sure the marker makes sense, anyway.
Test rendering with links to the example places:
https://www.openstreetmap.org/way/353735844
Before
After