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
pixel snapping for shield symbolizer? #1866
Comments
With the patch from #1316 I have a strange rendering of my new SVG road shields: |
can you post before/after? |
thanks. so are you customizing the |
No, I'm not using <?xml version="1.0"?>
<svg width="17" height="10" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Layer 1</title>
<rect id="rect1" width="17" height="10" rx="2.5" fill="#0090ff"/>
<rect id="rect2" x="0.25" y="0.25" width="16.5" height="9.5" rx="2.25" fill="#ffffff"/>
<rect id="rect3" x="1.25" y="1.25" width="14.5" height="7.5" rx="0.25" fill="#0090ff"/>
</g>
</svg> Actually, I adjust it for And this is a town marker used in #1316 (comment) images (with <?xml version="1.0"?>
<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Layer 1</title>
<circle fill="#ffffff" stroke="#000000" stroke-width="1.0" r="4.5" cy="5.0" cx="5.0" id="town"/>
</g>
</svg> |
note to self: need to move on this after making sure that test coverage for shields is good enough. |
I think if P. S.: Mapnik on all our servers are patched with https://gist.github.com/springmeyer/5650582 and we are happy with the result. |
Need to consider pixel snapping for shields as well as markers (as per #1316).
But current dumb approach leads to more blurry shields in some cases, which is likely resulting from some conflict between other code trying to round to integers.
Needs a closer look.
The text was updated successfully, but these errors were encountered: