mapbox / carto

fast CSS-like map stylesheets
https://cartocss.readthedocs.io/
Apache License 2.0
652 stars 129 forks source link

Mapnik Property rotate-displacement for TextSymbolizer not supported #378

Closed florianf closed 9 years ago

florianf commented 9 years ago

Hi, currently it's not possible to use the rotate-displacement property of the TextSymbolizer, or am I missing something?

(Using tilemill)

springmeyer commented 9 years ago

Try using tilemill master which pulls in the latest https://github.com/mapnik/mapnik-reference for the mapnik version you are running: https://github.com/mapbox/tilemill/pull/2416

florianf commented 9 years ago

Thanks for the quick response. I built tilemill from git just an hour ago with the following commands: git clone https://github.com/mapbox/tilemill.git cd tilemill npm install

OS is Ubuntu 14.04 64Bit. NodeJs is 0.10.25.

I also checked https://github.com/mapnik/mapnik-reference/blob/master/2.2.0/reference.json and couldn't find anything with rotate-displacement or text-rotate-displacement.

florianf commented 9 years ago

Thanks for the hint with mapnik-reference. I added it myself to the reference for mapnik 2.3.0 (bundled with tilemill), the cartocss is now valid. But when rendering I get the message:

[tilemill] Mapnik LOG> 2014-11-14 19:25:11: Unable to process some data while parsing '/home/florian/Documents/MapBox/project/open-streets-dc/':
[tilemill] * attribute 'rotate-displacement' with value 'true' at line 0

It seems that the property isn't supported in the bundled mapnik 2.3. I'll try to compile 3.0 from source, should it be supported there? (currently not in mapnik-reference for 3.0)

florianf commented 9 years ago

It works with current mapnik 3.0.0 nightly ppa. I'll close this and open a issue in mapnik-reference.