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
Name rendering of unusually shaped forest #2428
Comments
|
The current algorithm is: find centroid, if this is not inside the polygon go to one side and find a suitable place there. North/south position is not changed. |
|
That could be improved this way:
This way, the label would be the closest possible of the centroid, at the cost of complexifying the algorithm; that would improve rendering in such corner cases, though, and the 2., AFAIK, won't be executed on the vast majority of polygons, only on corner cases. |
|
We have very little control over where Mapnik labels polygons, so can't really do anything in the stylesheet. |
|
The correct place would be https://github.com/mapnik/mapnik/issues/ |
|
I have a parking P icon rendered outside the polygon, so it appears the parking would be in the building, where it is not. Is that also a mapnik issue, or worth a new ticket here? |
Outside the polygon is an issue here. |
|
Hmm, it sees the relevant code on our side does contain ' marker-placement: interior;'. Is somebody able to create a mimimal example (minimal db and minimal cartocss/xml) to definitely prove it's not a problem on our side? |

Hello, there.
I found what seems to be a name rendering problem: https://www.openstreetmap.org/way/448092558
As you can see, this forest has a very unusual shape, and that seems to cause a problem in the rendering of it's name: it's not centered on it, even roughly, but on the far left of the polygon. Even if it can't be displayed on the geometrical center of the polygon, it should be a lot closer of it than it is currently.
I suspect this to be a Mapnik issue, but, as I don't know how deep the rendering can be affected by the stylesheet, I prefer reporting it here to be sure, and will report it to Mapnik if relevant.
Regards.
The text was updated successfully, but these errors were encountered: