Labels cutoff when using text-placement-type: simple #1530

Closed
tokumine opened this Issue Oct 10, 2012 · 3 comments

Comments

Projects
None yet
2 participants

I'm experiencing cutoff labels of when using text placement type 'simple' despite large buffer sizes and trying text-clip:false as suggested by @springmeyer.

Adding text-avoid-edges: true fixes this but does result in fewer labels. I am using tilemill for this, and am not sure how to dump the generated XML - apologies.

example of chopped label

Map
{
buffer-size:256;
}

labels

{
text-allow-overlap:false;
text-placement-type: simple;
text-placements:"W,E,N,12";
text-label-position-tolerance:5;
text-min-distance:10;
}

(x-posted from https://github.com/mapbox/tilemill/issues/382)

Owner

springmeyer commented Oct 11, 2012

TileMill supports outputting Mapnik XML in the "exports" menu.

Owner

springmeyer commented Nov 29, 2012

I think text-avoid-edges: true is the best fallback to avoid cutting when using placement-type:simple. Then to avoid reducing the # of labels increase your metatile size as big as possible, 16, or 32 if you have tons of memory.

tokumine commented Dec 5, 2012

Thanks Dane. Increasing the metatile size worked great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment