Closed zdila closed 5 years ago
Ahoj!
I would say that those labels does not collide deterministically. Try to sort the datasource result by id, for example. Order of rows returned from a PostgreSQL command is undefined without sorting.
Hi @talaj. Thanks for your answer. You can see in the SQL that I am already sorting it by osm_id
.
I found a fix to my problem - I had to provide { buffer_size: 256 }
to options of map.render
nodejs function (OK, I forgot to mention that I use nodejs). But does it mean that if nodejs is used then buffer-size
attribute of the Map
is ignored?
Thanks for the analysis. Should I report it to mapnik/mapnik
issues or is this report sufficient?
It would be great if you can report it in node-mapnik.
It seems to be intentional: https://github.com/mapnik/node-mapnik/issues/342. In this case the only thing to do is to emphasize it in the documentation.
Hello,
I am using mapnik 3.0.20 and have problem with cut text:
I've set buffer-size even to 1024 on
Map
andLayer
but the text is still cut.Am I doing something wrong?
PS: I don't want to use
avoid-edges
property as it elemitinates too many labels.