So if I want to change the strokeStyle, I need to change it manually after loading the KML<br>or (but I don&#39;t like that) edit Format/Kml.js and add a hack to support a non-official tag<br><br>Thomas<br><br><div class="gmail_quote">
2010/8/4 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</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;">
Hi,<br>
<br>
there is no strokeStyle in KML. See <a href="http://code.google.com/apis/kml/faq.html#linestyle" target="_blank">http://code.google.com/apis/kml/faq.html#linestyle</a><br>
<br>
Regards,<br>
<font color="#888888">Andreas.<br>
</font><div><div></div><div class="h5"><br>
On Aug 4, 2010, at 11:05 , 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>
&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>
&gt; _______________________________________________<br>
&gt; Dev mailing list<br>
&gt; <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</div></div></blockquote></div><br>