-
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
differentiate guidepost from general tourism=information display #3198
Conversation
If it's Atom, then you can turn it off by disabling Preferences -> Whitespace -> Remove Trailing Whitespace. |
Link for testing place: |
Could you perhaps first fix the whitespace issues in a separate PR? |
@matthijsmelissen Done so now in #3197. and @kocio-pl also opened #3200. |
Several guideposts dedicated for hiking in both France and Switzerland (I don't know for other countries but I suppose too) mention a name and even an elevation. Would it be possible to add these features to the icon ? |
We have the code to reuse, so it should be possible. However could you show such examples? |
@jragusa That could be useful, I'll have a look. |
@kocio-pl Here are some instances in Austria: https://overpass-turbo.eu/s/ymd. |
95f4c41
to
0b1685c
Compare
Sorry, I wanted the photo example and some explanation, not the link to data set. 😄 If I get it right, they show the real elevation they are located at? But what is their name then? Isn't it the same as name and elevation of the peak or saddle for example? |
The name is usually a place name, but can also be the name of the saddle and/or peak. Elevation is of course the real elevation. The important part here is that both name and elevation are signed on the guidepost as can be seen in e.g. https://wiki.openstreetmap.org/wiki/File:Signpost.jpg. |
I see. OK, so I like this solution. After all they won't eclipse peaks or saddles, because they will be rendered very late. |
Maybe it would better to make the code more compact and easier to extend with other types, like: [feature = 'tourism_information'][information != 'guidepost'][zoom >= 17],
[feature = 'tourism_information'][information = 'guidepost'][zoom >= 19] {
marker-file: url('symbols/information.12.svg');
[information = 'guidepost'] { marker-file: url('symbols/guidepost.svg') };
marker-placement: interior;
marker-fill: @amenity-brown;
marker-clip: false;
} |
@nebulon42 Do you have plans to take care of rest of tourism=information icons #1978 (comment) and/ or other related issues #304 #324 ? It would be a big progress in tourism-elements rendering in Carto. |
project.mml
Outdated
@@ -1969,6 +1971,7 @@ Layer: | |||
'leisure_' || CASE WHEN leisure IN ('nature_reserve') THEN leisure ELSE NULL END | |||
) AS feature, | |||
name, | |||
tags->'information' as information, |
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.
What's this line for in text-poly-low-zoom
layer? I have tested that it works without this code as well on all the zoom levels.
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.
Same thing like #3196. :)
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.
Oh, boy, not again... 😄
Did you have a problem without this code or it's just in case? Did you try with updated Docker image (I mean with a new Kosmtik 😄 ).
I'm ready to merge this code without this line any time. Especially since production rendering servers have no such problem and there are no other mid/high zoom features that I'm aware of which need such addition. Would you like to split it, so we could discuss the low zoom mystery separately?
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'll do some tests again when I have time.
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 fine with merging this as is.
Thanks @nebulon42 !
What do you think about adding a mysterious code line? |
@matthijsmelissen ping? |
@nebulon42 Can you get it to work without the 'mysterious line' as well? If so, I'd prefer to merge that version. |
… name and ele to guidepost if present
I have removed the line but did not do additional testing. |
Thanks, I've tested it and it works. |
Ref #1978, #3105.
Adds a guidepost icon on z19 and drops rendering of guidepost nodes before z19.
before z18
after z18
before z19
after z19