Support Staff3 Posted by AJ on 22 Feb, 2012 03:48 PM
Your first issue was caused because applying labels to polygon
layers is a bit quirky - when you do this you should either add the
labels as a separate layer, or use the Carto attachment syntax like
Note that the ::labels subsection comes
after the polygon-fill definitions - this is important for
keeping them on top.
Your second issue is a side effect of the way TileMill splits
the map up into tiles.. if your labels are too long they can leak
outside of the tile they started on, and the next tile over doesn't
always get the message. One method to combat this is to add a
text-wrap-width parameter to your label style and set
it to something like 50-150. This will wrap your labels into
multiple lines to keep them from getting too wide.