mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
This adds a new mode called 'angled-point' to the marker-placement modes. The full list of modes is then: point, angled-point, interior, line, vertex-first, vertex-last Angled point is identical to point, except that when placing a marker on a line, the marker's angle is taken from the angle of the line segment. There is another possible use of the "angled-point" concept for polygons, and that is for placing labels on stand (aka erf) polygons. By computing a dominant angle for a mostly rectangular polygon, this can produce quite good results. I'm not sure whether I should implement that now, or if I could do that later.