-
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
Replacing non-vector icons with SVG #2754
Conversation
You should update this code to resolve merging conflict (color values). You can also split the code, so both issues would be separated. |
I do not consider those two different things. Both changes are required to make the @transportation-text color changeable. |
OK, I once again updated my upstream branch holding the pull request. There are two commits now. I still consider them being one change though. |
I did not have the opportunity to actually test the change yet but it makes a lot of sense - the icon is modeled after wilderness_hut wich is in a bit of styling discrepancy with shelter and the old alpine_hut but that is a pre-existing problem. |
I just figured out, that I need to draw more replacement icons. I will update at least the ones rendereed in transportation-text color. However I think we should get rid of all the remaining png icons. There are seven including alpine hut: |
What change are you talking about (other than recreating PNG image in SVG)? |
I am talking about the changes of this PR - as a general policy i will not approve changes i have not tested. But the icon and the idea of replacing hardcoded colors with a symbol are both fine IMO. |
Yes, that would be very welcome. Especially now we're so close to completion. |
Nice! The chalet and guesthouse icon are (both in the old and new version) not really recognizable to me though. |
Frankly I do not know the meaning of the triangle in the guest-house icon. I just traced it. |
Wow, really great work at very impressive speed! I was thinking about recreating bus station for months... Please check that every icon:
Problems I see:
|
fd3a438
to
cd6d350
Compare
Thanks for this PR and your work! |
|
BTW three out of six icons I made up are just taken more or less verbatim from Bryan Quinion icon collection which has been in use for Mapnik as long as I remember and where the raster versions obviously also originated from. So my question is: What is more important, the fact that the icons are looking exactly like the old ones or the consistency compared to other vector icons? |
For me personally the most important thing is that the icon should be easy to recognize, but it's nice if it's close to what we already know and is consistent with the rest of the icons we use in this style. I have no problem with most of your decisions beside white background for bus station, because it looks bad for me without a solid white and is hard to be recognized on busy background, like the one I have shown. |
Unfortunately as far as I understand carto this will not work this way. All svg object colors are replaced by the color given inside the style file thus it is not possible to use multiple colors.in an icon colored by Mapnik. The only way I know of would be to use the original colors from the svg itself which I would at least consider somewhat ugly because this way the colors would again come from the svg instead of the style. Maybe it is also possible to disable opacity in carto-css. I will have a look at this tomorrow, |
That's true if we define the color in the stylefile, but im not sure if were still doing that? |
As far as I know we use stylefile only for icons, for pattern symbols we have to use colored images. Changing color in SVG file is still easy to do text edit (from technical point of view it's pure code) and we have to live with different Mapnik limitations, while icon which is hard to read is much worse problem. |
Meanwhile I've been looking at chalet and I think that triangle is a symbol of mountains and I would make the house icon smaller, because typical Swiss chalet is low building. |
Sorry for this. I don't like to make review longer than necessary, but we try to talk about all details beforehand, because they will not be touched for years probably. I'm happy with the results, so for me it's "take it". Thanks for a design and for tuning it! |
Thanks once again! |
@giggls Thanks a lot! |
As #2752 got accidentally closed here is a new pull request.