Skip to content
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 opacity to highway=proposed for less prominent rendering #1216

Merged
merged 1 commit into from
Jan 19, 2015

Conversation

sb12
Copy link
Contributor

@sb12 sb12 commented Jan 10, 2015

Based on the discussion in and supersedes #863.
At least partly resolves #826 and #345.
This does not add special styles for tunnels or bridges and might need some rework, when the 'proposed=*' key is available in the database.

Rendering example:
proposed

@matkoniecz
Copy link
Contributor

@sb12 "The construction rules for small roads are strange(...)" comment should be moved to appear before construction rules, not before proposed rules.

(preferably - without making it a separate commit)

@sb12
Copy link
Contributor Author

sb12 commented Jan 10, 2015

@mkoniecz thanks for spotting it. It should be fixed now.

@matkoniecz
Copy link
Contributor

Is it intentional that highway=proposed is no longer rendered on z12? Code is suggesting that it is present at this zoom level, but effects are different.

BTW, I am supporting dropping rendering highway=proposed from z12.

https://cloud.githubusercontent.com/assets/899988/5691990/85215472-98e1-11e4-818e-eb8ceffc7558.png

@matkoniecz
Copy link
Contributor

From test on real data - it seems this transparency is really strong, it basically removes rendering except name. Maybe it is too strong?

https://cloud.githubusercontent.com/assets/899988/5692071/b1f81e32-98e5-11e4-8df8-a37a285fac9e.png

https://cloud.githubusercontent.com/assets/899988/5692070/b1f5d762-98e5-11e4-9d7d-3c8f299491fa.png

@daganzdaanda
Copy link

Thanks for the real world examples. I agree, if it's so very transparent, we can just as well leave it out. Maybe 0.3 opacity would already be enough?
OTOH, I'd like to have the labels less visible. In z<=14 I wouldn't render a label for proposed roads at all. And after that, grey instead of black would probably fit the new style better.

line-width: 2;
line-color: white;
line-opacity: 0.2;
a/line-width: 2;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use more descriptive names than a b and c?

@sb12 sb12 force-pushed the highway_proposed2 branch 2 times, most recently from 5cad72b to 38990df Compare January 17, 2015 13:47
@sb12
Copy link
Contributor Author

sb12 commented Jan 17, 2015

Thank you for your feedback.

@daganzdaanda

Thanks for the real world examples. I agree, if it's so very transparent, we can just as well leave it out. Maybe 0.3 opacity would already be enough?
OTOH, I'd like to have the labels less visible. In z<=14 I wouldn't render a label for proposed roads at all. And after that, grey instead of black would probably fit the new style better.

I changed the opacity to 0.3 and added an opacity to the labels as well. I also removed labels for zoom levels <=14:
proposedheidelberg14
proposedheidelberg16

@mkoniecz maybe you could render some more examples with your tool. I tried to use it but I didn't know how to and couldn't find any documentation. (Does it work on Linux?)

BTW, I am supporting dropping rendering highway=proposed from z12.

I agree with you, so I removed rendering in zoom 12 and also changed the rendering in zoom level 13 to the one which was used in zooom level 12 before. This improves rendering of planned residential highways a lot. (I'm planning to provide a separate pull request for roads under construction which have a similar problem.)
Example:
proposedbruchsal

@pnorman I improved the code to be more descriptive.

@matkoniecz
Copy link
Contributor

I tried to use it but I didn't know how to and couldn't find any documentation. (Does it work on Linux?)

@sb12 - I was unsure whatever anybody will want to use it, so at this moment there is no documentation. Also, some features that are necessary to make it usable for other people are missing at this moment (it should change in the near future). It works on Linux.

@matthijsmelissen
Copy link
Collaborator

Looks goood to me, and can be merged as far as I am concerned.

matkoniecz pushed a commit that referenced this pull request Jan 19, 2015
make highway=proposed rendering less prominent
adds opacity and stops rendering at z12
@matkoniecz matkoniecz merged commit 4b046cf into gravitystorm:master Jan 19, 2015
@sb12 sb12 deleted the highway_proposed2 branch January 19, 2015 09:42
@sb12 sb12 restored the highway_proposed2 branch January 19, 2015 20:13
@matkoniecz
Copy link
Contributor

@sb12 - I finally released my helper script in form that has chance to be usable for other people (https://github.com/matkoniecz/CartoCSSHelper).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

highway=proposed should not be drawn like highway=construction without construction=*
5 participants