I run the python script, and for 2 neighboring tiles, I get the following result:
The tile generator generates each tile independently. How can it know where tiles generated labels that bled into other tiles? Is there a setting that prevents the generator from generating such labels?
The script can be found at https://github.com/openstreetmap/mapnik-stylesheets. The particular area is at level 18 in the vicinity of downtown Atlantic City, NJ.
This is typycal mapnik behaviour. While rendering one tile, it thinks the shield must be in one place, and while rendering the neighbour, it figures out it has to go somewhere else.
What you have to do is to add or raise your buffer-size
. See https://help.openstreetmap.org/questions/33485/cut-labels-with-mapnik .