tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.12k stars 527 forks source link

text-horizontal-alignment fails when using text-dx on multiline text. #2423

Open nextstopsun opened 10 years ago

nextstopsun commented 10 years ago

When a text-dx property is used on a multiline label, the alignment of the text is always left, and it can't be changed with text-horizontal-alignment: middle; etc. Though text-dy doesn't brake horizontal alignment.

I haven't figured out yet if it's a CartoCSS to XML conversion bug or a native Mapnik bug.

springmeyer commented 10 years ago

This is likely fixed in Mapnik 3.x which I'll be upgraded TileMill to shortly. In the meantime if you want to test then change to package.json references for mapnik and carto to that latest releases (mapnik=3.0.1) (carto 0.14.0) and re-install from master.