The strokeStyle was invented by me :) (just example of what I wanted)<br><br>In fact I just wanted to change the stroke style.<br>So now it&#39;s working using a StyleMap and adding extra attributes to my Placemark.<br><br>
What I just learn is that you cannot combine StyleMap +a style defined by  &lt;styleUrl&gt;<br>If styleUrl is set, the StyleMap is no more used, except if I forgot something :)<br><br><div class="gmail_quote">2010/8/4  <span dir="ltr">&lt;<a href="mailto:christopher.schmidt@nokia.com">christopher.schmidt@nokia.com</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;"><div class="im"><br>
On Aug 4, 2010, at 5:05 AM, ext Thomas PAPIN wrote:<br>
<br>
&gt; I want to draw a circle with dash stroke<br>
&gt;<br>
&gt; &lt;kml xmlns=&quot;<a href="http://www.opengis.net/kml/2.2" target="_blank">http://www.opengis.net/kml/2.2</a>&quot;&gt;<br>
&gt;   &lt;Document&gt;<br>
&gt;     &lt;name&gt;My Layer&lt;/name&gt;<br>
&gt;     &lt;description&gt;My Layer&lt;/description&gt;<br>
&gt;     &lt;Style id=&quot;circles&quot;&gt;<br>
&gt;       &lt;LineStyle&gt;<br>
&gt;          &lt;width&gt;1&lt;/width&gt;<br>
&gt;          &lt;color&gt;AAAA0101&lt;/color&gt;<br>
&gt;          &lt;strokeStyle&gt;dashlong&lt;/strokeStyle&gt; &lt;-------- Here what I want to be able to do<br>
<br>
</div>I see no evidence in the KML spec (<a href="http://code.google.com/apis/kml/documentation/kmlreference.html" target="_blank">http://code.google.com/apis/kml/documentation/kmlreference.html</a>)<br>
that KML supports strokeStyle as a style property. OpenLayers<br>
does not currently support any additional keywords in KML<br>
styles that are not in the KML spec, as far as I know.<br>
<br>
-- Chris<br>
<div><div></div><div class="h5"><br>
&gt;        &lt;/LineStyle&gt;<br>
&gt;     &lt;/Style&gt;<br>
&gt;                &lt;Placemark&gt;<br>
&gt;               &lt;name&gt;Circles&lt;/name&gt;<br>
&gt;               &lt;description&gt;Circles&lt;/description&gt;<br>
&gt;               &lt;styleUrl&gt;#circles&lt;/styleUrl&gt;<br>
&gt;               &lt;Polygon&gt;<br>
&gt;                  &lt;outerBoundaryIs&gt;<br>
&gt;                         &lt;LinearRing&gt;<br>
&gt;                         &lt;coordinates&gt;<br>
&gt;                                                                 57.524815584992,-21.089077666611,0<br>
&gt;                                                                 57.491623770767,-20.775797326738,0<br>
&gt;                                                                 57.401366068943,-20.47264076493,0<br>
&gt;                                                                 57.257078399726,-20.188726311404,0<br>
&gt;                                                                 57.063349621694,-19.932548767663,0<br>
&gt;                                                                 56.826161736521,-19.711737565644,0<br>
&gt;                                                                 56.552700712164,-19.532843001926,0<br>
&gt;                                                                 56.251143522419,-19.401155031576,0<br>
&gt;                                                                 55.930426526423,-19.320558337236,0<br>
&gt;                                                                 55.6,-19.293426628671,0<br>
&gt;                                                                 55.269573473577,-19.320558337236,0<br>
&gt;                                                                 54.948856477581,-19.401155031576,0<br>
&gt;                                                                 54.647299287836,-19.532843001926,0<br>
&gt;<br>
&gt; 2010/8/4 Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;<br>
&gt; Can you provide a working example (with the KML in question) that shows what you are doing?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Andreas.<br>
&gt;<br>
&gt; On Aug 4, 2010, at 10:29 , Thomas PAPIN wrote:<br>
&gt;<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; It&#39;s seems not possible to apply a strokeDashstyle from a KML layer or I didn&#39;t find how to do ? is that correct ?<br>
&gt; &gt; The only solution is to add the style after loadend event manually ?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Dev mailing list<br>
&gt; &gt; <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
&gt; &gt; <a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Andreas Hocevar<br>
&gt; OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
&gt; Expert service straight from the developers.<br>
&gt;<br>
&gt;<br>
</div></div>&gt; &lt;ATT00001..txt&gt;<br>
<br>
</blockquote></div><br>