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 special rendering for shop=greengrocer #1410

Closed
kocio-pl opened this issue Mar 18, 2015 · 11 comments · Fixed by #1586
Closed

Add special rendering for shop=greengrocer #1410

kocio-pl opened this issue Mar 18, 2015 · 11 comments · Fixed by #1586

Comments

@kocio-pl
Copy link
Collaborator

We should start rendering shop=greengrocer, probably with this icon from osmfr-cartocss fork:

https://github.com/cquest/osmfr-cartocss/blob/master/symbols/greengrocer.svg

[It was proposed in meta-issue #1402]

@kocio-pl kocio-pl changed the title Add rendering for shop=greengrocer Add special rendering for shop=greengrocer Mar 18, 2015
@matthijsmelissen matthijsmelissen added this to the New features milestone Apr 29, 2015
@kocio-pl
Copy link
Collaborator Author

kocio-pl commented May 1, 2015

I tried to port French icon (because it's just great: greengrocer-14) to 14x14 px with limited success - in the Inkscape it looks OK, but on the GitHub preview it's small. Could somebody more experienced - @nebulon42 ? - check if it's technically correct?

@nebulon42
Copy link
Contributor

The file is basically ok, but I would use Plain SVG instead of Inkscape SVG. IMO especially the leaves and the stem are not aligned enough. I would make the stem more wide and connect it to the fruit, maybe leaving out one of the leaves would be better, too.

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented May 2, 2015

What about now? greengrocer-14

@nebulon42
Copy link
Contributor

Looks better, yes. Maybe pure black for the fill would be better. Technically there are also some transforms left, which I would get rid of (by ungrouping and fresh positioning), but that's optional I think.

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented May 2, 2015

I try to learn also those details, so I changed the color to black (I haven't noticed it's not pure black) and ungrouped the elements, but was not aware what to do next to get rid of transforms. You can explain me this if you want, but you can also work with this file yourself.

Until I'm ready with development environment I will leave the icons as they are probably, because I already can edit and create them (more or less) correct, so it's time to learn testing and making correct PRs to close some of the issues.

@nebulon42
Copy link
Contributor

I noticed that after ungrouping you just have to save and the main shape is fine then.

However, I noticed a few other things. If you look in the code (open the file with a text editor) you have an additional unnecessary rectangle of width/height 8px in it and also some empty group () after it. You can get rid of the group enclosing the two rectangles too. The canvas rectangle should have 14px width/height and be positioned at (0,0). Also it is important that this rectangle has visibility:hidden (your group was taking care of that by using display: none) in its style attribute, no need for stroke (stroke: none).

@kocio-pl
Copy link
Collaborator Author

kocio-pl commented May 3, 2015

Ok, that was too difficult for me, so I made a simple hack and took a clean canvas from a different icon. Looks like it was a clever move, because file is now smaller, more readable and the preview in GitHub is correct too. I was not sure if copy-paste would work here, but that ensures me it's legitimate trick when dealing with twisted code - I don't plan to become an expert on SVG XML! =}

Thanks a lot for your help! I feel pretty safe now about drawing vector pixel-aligned OSM icons, even if my design skills are just basic here.

@kocio-pl
Copy link
Collaborator Author

I guess this icon can be also used for shop=farm, since the difference is location rather than stock.

@kocio-pl
Copy link
Collaborator Author

@nebulon42 Your Osmic version is not worse than this one (both are nice and readable for me) but it's more coherent with some other icons you've already committed to default map style, so maybe you want it to make a PR?

If you work with other shapes I try to design, just let us know. I don't like some of them and will try hard to make my version easier to recognize (visually all of them are interesting at least for me), but that's minority - I'd like to spend more time on drawing missing shapes than just on doubling your icons.

@nebulon42
Copy link
Contributor

See #1569 (comment). Currently, I do not plan any new shapes, but I might start re-drawing shapes when I look at them in detail, can't help that. I will notify you if there's an alternative shape I did in the future.

@kocio-pl
Copy link
Collaborator Author

I see, that's the same feel of urgency I had with a kiosk icon, probably. =}}}

Thanks, that will do - for me another shape to consider is a good thing.

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

Successfully merging a pull request may close this issue.

3 participants