-
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
Single-character shields uncentered #680
Comments
I suspect this is a mapnik issue, but it could be worth checking that there's nothing daft with our shield icons first. See e.g. http://gis.19327.n5.nabble.com/text-placement-bug-in-shieldsymbolizer-td5339352.html |
I fiddled with shield placement for several hours (https://twitter.com/penorman/status/483406400236707840) when writing SVG shields. I have a fix which involves shifting the shields in the SVG by about 1.5 pixels. It also turns out that this bug is also present for all shields, not just one-character shields. Is there something daft? Probably, I can't get a simple 2px circle to place in the middle of the text by adjusting any of the stylesheet shield parameters. In all honesty, after spending 6 hours staring at shields, what I have is "good enough". |
2014-06-30 20:22 GMT+02:00 Paul Norman notifications@github.com:
IIRR there is a bug in mapnik regarding shields and their text placement |
Yes, I had to adjust both directions, and by different amounts |
Fixes gravitystorm#680 Fixes gravitystorm#203 Fixes gravitystorm#202 (mostly) Fixes gravitystorm#146 (mostly) Cross-reference gravitystorm#294 mapnik/mapnik#2020 Starts organization for gravitystorm#508 Replace existing PNG road shields with new SVG ones. This allows for easier adjustment of colour and width as well as sharper high-resolution rendering. At the same time, a number of other shield related bugs are fixed. To aid in organization, a new shields directory is created.
Fixes gravitystorm#680 Fixes gravitystorm#203 Fixes gravitystorm#202 (mostly) Fixes gravitystorm#146 (mostly) Cross-reference gravitystorm#294 mapnik/mapnik#2020 Starts organization for gravitystorm#508 Replace existing PNG road shields with new SVG ones. This allows for easier adjustment of colour and width as well as sharper high-resolution rendering. At the same time, a number of other shield related bugs are fixed. To aid in organization, a new shields directory is created.
Fixes gravitystorm#693 Fixes gravitystorm#680 Fixes gravitystorm#203 Fixes gravitystorm#202 (mostly) Fixes gravitystorm#146 (mostly) Cross-reference gravitystorm#294 mapnik/mapnik#2020 Starts organization for gravitystorm#508 Replace existing PNG road shields with new SVG ones. This allows for easier adjustment of colour and width as well as sharper high-resolution rendering. At the same time, a number of other shield related bugs are fixed. To aid in organization, a new shields directory is created.
Most obvious with X, but also true with "1", the most common single-character ref.
http://www.openstreetmap.org/#map=17/36.84028/10.21406
The text was updated successfully, but these errors were encountered: