<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 1, 2010, at 2:10 AM, Igor Brejc wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Thu, Jul 1, 2010 at 10:56 AM, Maarten Deen <span dir="ltr"><<a href="mailto:mdeen@xs4all.nl">mdeen@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; ">
The problem is that if you go to a rule "one road, name displayed once",<br>
you will have to search for the name of the road if the road is very long.<br></blockquote><div><br>The actual rule is: treat it as a single OSM way and then decide how often to repeat the name for longer ways. <br> </div>
<blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; ">
This might not be a problem with residential roads on lower zoom levels,<br>
but it will with e.g. motorways on higher zoom levels.<br>
<br>
Look example [1]. There is no name on the motorway (I've got my browser<br>
about 1100 pix wide).<br>
I have deliberately cut a local stream up to make the name render in more<br>
places.<br>
<br></blockquote><div><br>It's up to the renderer to decide how often to repeat the name.</div></div></blockquote><div><br></div>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.</div><div><br></div><div>So, it is the rendering rules in question really, not the renderer.</div><div><br></div><div><blockquote type="cite"><div class="gmail_quote"><div>Cutting up ways just to make it look better for a certain renderer (Mapnik) isn't really a good practice. </div></div></blockquote><div><br></div>And it not needed at all if Mapnik is the renderer.</div><div><br><blockquote type="cite"><div class="gmail_quote"><div>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.<br>
<br>Igor<br></div></div><br>
_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>http://lists.openstreetmap.org/listinfo/talk<br></blockquote></div><br></body></html>