NopMap wrote: > It appears that something has changed about text or icon placement in mapnik > 0.7.
Indeed it has. The default vertical_alignment, which has been 'middle' for some time, is now dependent on the value of dy. This has been done to cleanly work with the most prevalent usage of dy, which is putting a label adjacent to a symbol, while now also accomodating multiline labels without issues. Previously, if you positioned a label (with dy) to appear just below (or over) a symbol, it was fine. Until the label wrapped. In that case, part of the label, the top line, was overlapping the symbol, and the whole label was dropped. I've outlined this, with a few example pictures, in trac ticket 485 (http://trac.mapnik.org/ticket/485). In the cases where you just want to nudge the label a few pixels, you can still do that if you add vertical_alignment='middle'. > When I change dy to 0, the text jumps 6 pixels down and is inside. While > some texts are exactly in the right place, some are still off by 1 pixel. I've noticed the 1px variance before. I believe it has everything to do with rounding to screen pixels, and nothing with the issue above. > Was there a deliberate change in text placement in 0.7? > What is the unit for dx/dy? I would have expected pixels, but it seems to be The unit is still pixels, but I agree the current behaviour can catch you by surprise. I was sure this change made it into the 0.7.0 Changelog (http://trac.mapnik.org/wiki/Release0.7.0), but it seems it didn't. -- Lennard _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

