You can do something like:<br><br>styleMap = new OpenLayers.StyleMap({&#39;default&#39;:{<br>                        label : &quot;${label}&quot;,<br>                        fontColor: &quot;${fontColor}&quot;,<br>                        fontSize: &quot;11px&quot;,<br>
                        labelAlign: &quot;${labelAlign}&quot;,<br>                        pointRadius: 2,<br>                        labelXOffset : &quot;${labelX}&quot;,<br>                        labelYOffset : &quot;${labelY}&quot;<br>
                    }});<br><br>GMLlayer = new OpenLayers.Layer.GML(&quot;Layer name, kml_url, <br> {<br>                    format: OpenLayers.Format.KML, <br>                                                    formatOptions: {<br>
                                                        extractAttributes: true,<br>                                                        maxDepth: 2<br>                                                        },<br>                                                    styleMap: styleMap<br>
                                                });<br><br>And a KML like that:<br><br>&lt;kml xmlns=&quot;<a href="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2</a>&quot;&gt;<br>  &lt;Document&gt;<br>    &lt;name&gt;Date&lt;/name&gt;<br>
    &lt;description&gt;Date&lt;/description&gt;<br>      &lt;Placemark&gt;<br>         &lt;label&gt;24 Jan, 13h&lt;/label&gt;<br>         &lt;labelAlign&gt;center&lt;/labelAlign&gt;<br>         &lt;labelX&gt;0&lt;/labelX&gt;<br>
         &lt;labelY&gt;10&lt;/labelY&gt;<br>         &lt;Point&gt;<br>           &lt;coordinates&gt;70.0,-30&lt;/coordinates&gt;<br>         &lt;/Point&gt;<br><br><br><div class="gmail_quote">2010/8/25 Tim Alder <span dir="ltr">&lt;<a href="mailto:tim.alder@s2002.tu-chemnitz.de">tim.alder@s2002.tu-chemnitz.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello, is there a way to show labeltext on a layer that based on KML?<br>
Where can I found a good example for this?<br>
<br>
The next step would be perhaps than a solution to prevent coolisions between this labeltext but this seems really complicate.<br>
<br>
<br>
Greetings Kolossos<br>
<br>
P.S: To my person: I&#39;m working on the cooperation between Wikipedia and OpenStreetMap.<br>
First result:<br>
<a href="http://toolserver.org/%7Ekolossos/openlayers/kml-on-ol.php?zoom=10&amp;lat=48.15841&amp;lon=11.42421&amp;lang=en&amp;layers=B00TT" target="_blank">http://toolserver.org/~kolossos/openlayers/kml-on-ol.php?zoom=10&amp;lat=48.15841&amp;lon=11.42421&amp;lang=en&amp;layers=B00TT</a><br>

Some cartographs means now that it would be better to show optional also textlabels on map.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br>