Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Name of lake rendered outside lake boundary #1225

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Name of lake rendered outside lake boundary #1225

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: aroach[at]princeton.edu
[Submitted to the original trac issue database at 8.56am, Wednesday, 1st October 2008]

The name of the lake in [http://openstreetmap.org/?lat=40.3506&lon=-74.6262&zoom=14&layers=B000FTF this map] appears to be rendered at the centroid of the lake, but because of the lake's shape, the centroid lies outside the boundary of the lake. It may be appropriate to add some logic to ensure that the point where the name is rendered is interior to the object.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 9.02pm, Wednesday, 1st October 2008]

That's actually a problem with mapnik (the rendering toolkit we use) and not something we control directly. Mapnik doesn't currently have an intelligent text placement algorithm for areas (it does for points and lines) so it just puts it at the centroid.

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

No branches or pull requests

1 participant