-
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
add icon halos (to refreshed SVG icons) #1341
Conversation
Yes.
Cost of human work (setup) is negligible but it is significant and long work for computer. I will run it, but it may wait day or two for a feasible time (computer not used for anything for a significant part of day - as at least on my hardware it significantly degrades performance of other software). |
Does it mean that all/most text need to be shifted down 1px? I think the distance between text and icons is already quite large, would be a shame if we'd have to enlarge it even further. |
Great, thanks very much for checking this.
I don't know but I think not necessarily because the distance is already quite large as you said. But it has to be checked to be sure. |
Yes - adding a 1px buffer will require adding 1px to dy. Are there any ways to do the halo within mapnik with comp-op or other techniques? I'd much rather not have to do them in all the SVGs. |
How does adding halos affect the svg recolouring? One advantage of the SVG icons for downstream users is being able to set |
Yes, this propose change would force increasing text-dy - that is anyway really big. Also, I think that change in example is not improvement. Loss of labels is not really improving readability, and there is loss of information.
The problem is with inner hole, not with nearby labels/icons. |
First thanks for systematically testing this. Could you please quantify your statement a bit? Like "all text-dy have to be increased" or "30% of text-dy have to be increased". This does not have to be exact, but I'd love to see how many POIs would be affected. I don't know what you mean with loss of information. I have always said that text-dy would have to be adjusted before this can be merged. On the other hand, I really think that icons need halos. Text has halos, some even quite unnecessarily big. So why should icons don't have it? The example should not be seen as ideal or as really illustrative for this change. There are certain noisy backgrounds and combinations where halos will be helpful. See again my example in #325 (comment) with spring within forest where a halo would certainly improve visibility. |
is there an option in mapnik to prevent the collision of text and icon at all? I have no Problem with a high text overlapping the icon halo. |
Reducing amount of displayed relevant labels means that some information is removed from displayed map.
Now entire test has finished, with following results:
|
Thanks very much, that means that this affects roughly 37% of the icons in this PR. |
To me, adding the halo is not a visual improvement. I don't like the halo for the labels either, but there we really need them for readability (although I succeeded in reducing the visual impact of the label halos). I think the icons are readable enough without halo. I also think the text-dy is already too big, and really wouldn't like to increase it even more. So in short, I would suggest not to add halos to the icons. |
I also don't think this is worth it. |
Looking back at this - why would we even need more text-dy? In the latter case, we could make the halos for text and icon as large as we like, while keeping the current text-dy. But even in the first case, a 1px outline around an icon could only touch the outline of the text. That is not a problem at all, IMHO. |
Adding a halo to an icon makes for a bigger icon. Bigger icon, bigger text-dy.
No. The halo is part of the icon. It just makes the image larger.
I'd encourage you to try experimenting with tilemill/kosmtik to get a better feeling for how it works. But in short, the icon is "one thing" and the text(+text-halo) is "one thing" and if they overlap, the text isn't shown. |
Adds white 1px wide halos with 30% opacity to refreshed SVG icons.
This technique is similar to how Maki icons handle this.
Partly fixes #1189.
This improves the situation on noisy background especially for icons with larger inner holes such as ATM:
before
after
Some general overview (click for full size):
before
after
Since icons are now 2px larger than before this would need systematic
text-dy
checking.@mkoniecz Could this be done with your tool and is it a lot of work?