Ticket #38 (closed defect: fixed)
Vertical Displacement of line text
| Reported by: | osm@… | Owned by: | dave |
|---|---|---|---|
| Priority: | critical (top) | Milestone: | 1.0.0 |
| Component: | Core Library | Version: | SVN Trunk |
| Severity: | Normal | Keywords: | |
| Cc: | gravitystorm | Patch Needs Improvement: | no |
| Needs Docmentation: | no | Has Patch?: | no |
| Design Decision Needed: | no |
Description
It would be nice to be able to write text along a line with a "vertical" displacement, so that a streetname could be rendered alongside the street. Similar to that for the dy attribute to point textsymbolizer.
<TextSymbolizer name="lcn_ref" face_name="DejaVu Sans Book" size="14" fill="blue" halo_radius="2" placement="line" dy="80"/>
The displacement would probably refer to the distance between the line and text path at right angles to the line, rather than a vertical displacement on the final render. The latter wouldn't work for north-south streets!
Consideration would need to be given to corners in lines, e.g. the displacement given would indicate the gap between the two paths, and would have to be maintained around the corners.
