You're right, that would be a problem. But I guess as long as you have raster-only data, there isn't a perfect way to solve this problem. <br><br>An alternative would be to render text (and icons, since they can collide, too) on the client-side using JavaScript on top of server-generated tiles. The server could still perform the actual text placement and then send the text, text vectors and classes (=priorities) to the client which would then render it. <br>
<br>Client would be able to determine that the bus stop label can be rendered if the railway station class is turned off, for example. In advanced scenario the client would even be able to do additional text placement automation, if necessary.<br>
<br>Igor<br><br><div class="gmail_quote">On Tue, Dec 28, 2010 at 11:10 AM,  <span dir="ltr"><<a href="mailto:marqqs@gmx.eu">marqqs@gmx.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Sounds great, but it's not that easy, I think...<br>
<br>
Depending of the map layers you compose, you would need different text layer compositions. For example:<br>
<br>
In my public transport map, there are priorities for the texts; the name of a railway station has always a higher priority than the name of a bus stop. Hence, if there is bus stop nearby a railway station, the name of the bus stop is not displayed.<br>

Now, if you would decide to have different layers for railways and buses, and to switch off the railway layer, the name of the bus stop would have to reappear.<br>
<br>
To go one step further:<br>
Ideal would it be to move the colliding texts slightly instead of omitting them. But then, how to deal with different map layers?<br>
<br>
Markus<br>
<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Tue, 28 Dec 2010 07:30:51 +0100<br>
> Von: Igor Brejc <<a href="mailto:igor.brejc@gmail.com">igor.brejc@gmail.com</a>><br>
> An: <a href="mailto:marqqs@gmx.eu">marqqs@gmx.eu</a><br>
> CC: Frederik Ramm <<a href="mailto:frederik@remote.org">frederik@remote.org</a>>, <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
> Betreff: Re: [OSM-dev] Layered Tiling (Mapnik)<br>
<div><div></div><div class="h5"><br>
> On Mon, Dec 27, 2010 at 11:29 PM, <<a href="mailto:marqqs@gmx.eu">marqqs@gmx.eu</a>> wrote:<br>
><br>
> ><br>
> > But there is one problem you would have to deal with: there is no<br>
> collision<br>
> > avoidance between the texts of different tile layers.<br>
> ><br>
> ><br>
> That could be solved if the all the layers were rendered as a single map,<br>
> but painted onto several layer bitmaps. I'm planning to implement<br>
> something<br>
> like this in Maperitive.<br>
><br>
> Igor<br>
</div></div></blockquote></div><br>