[OSM-talk] Rendering street names across several ways

Dane Springmeyer blake at hailmail.net
Thu Jul 1 22:10:50 BST 2010


On Jul 1, 2010, at 2:10 AM, Igor Brejc wrote:

> 
> 
> On Thu, Jul 1, 2010 at 10:56 AM, Maarten Deen <mdeen at xs4all.nl> wrote:
> The problem is that if you go to a rule "one road, name displayed once",
> you will have to search for the name of the road if the road is very long.
> 
> The actual rule is: treat it as a single OSM way and then decide how often to repeat the name for longer ways. 
>  
> This might not be a problem with residential roads on lower zoom levels,
> but it will with e.g. motorways on higher zoom levels.
> 
> Look example [1]. There is no name on the motorway (I've got my browser
> about 1100 pix wide).
> I have deliberately cut a local stream up to make the name render in more
> places.
> 
> 
> It's up to the renderer to decide how often to repeat the name.

In the case of Mapnik, labels are repeated along lines by default, but its up to the stylesheet author to specify the spacing between them.

So, it is the rendering rules in question really, not the renderer.

> Cutting up ways just to make it look better for a certain renderer (Mapnik) isn't really a good practice.

And it not needed at all if Mapnik is the renderer.

> And anyway, this depends on the zoom level: once you zoom into enough, you will still get ways that will be long and with one label only. And if you zoom out, you won't get _any_ labels, since the split ways will be too short to show anything.
> 
> Igor
> 
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20100701/e7902267/attachment.html>


More information about the talk mailing list