[OSM-talk] osmarender name clipping
80n
80n80n at gmail.com
Tue Jan 23 13:22:40 GMT 2007
The only thing you can do at the moment is add an svg tag to the way. This
gets passed by Osmarender to svg and affects the rendered result. So
svg:font-size=0.5 would make the caption smaller (see
http://wiki.openstreetmap.org/index.php/Osmarender/Tips). This is not an
especially elegant thing to do so I'm not recommending it, just pointing out
that it is there.
I did start looking at a couple of other ways of achieving this by modifying
Osmarender. One approach would be to create an artificial, transparent,
extension to the path in the same direction as the last segment of the
path. The caption would then render along that path.
Another approach I was looking at was to calculate the length of the path
and then compare this to the length of the caption and then either not
render the caption, or render it at a reduced size.
I don't have time to re-visit either of these ideas for some weeks, so if
anyone is inspired then they are welcome to have a go.
80n
On 1/23/07, David Earl <david at frankieandshadow.com> wrote:
>
> Is there any way of persuading osmarender (by changing the
> osm-map-features
> file) not to clip the names of short streets? I'd much rather the name
> protruded off the ends than be incomplete.
>
> David
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070123/b63686b1/attachment.html>
More information about the talk
mailing list