So if I want to change the strokeStyle, I need to change it manually after loading the KML<br>or (but I don'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"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></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>
> I want to draw a circle with dash stroke<br>
><br>
> <kml xmlns="<a href="http://www.opengis.net/kml/2.2" target="_blank">http://www.opengis.net/kml/2.2</a>"><br>
> <Document><br>
> <name>My Layer</name><br>
> <description>My Layer</description><br>
> <Style id="circles"><br>
> <LineStyle><br>
> <width>1</width><br>
> <color>AAAA0101</color><br>
> <strokeStyle>dashlong</strokeStyle> <-------- Here what I want to be able to do<br>
> </LineStyle><br>
> </Style><br>
> <Placemark><br>
> <name>Circles</name><br>
> <description>Circles</description><br>
> <styleUrl>#circles</styleUrl><br>
> <Polygon><br>
> <outerBoundaryIs><br>
> <LinearRing><br>
> <coordinates><br>
> 57.524815584992,-21.089077666611,0<br>
> 57.491623770767,-20.775797326738,0<br>
> 57.401366068943,-20.47264076493,0<br>
> 57.257078399726,-20.188726311404,0<br>
> 57.063349621694,-19.932548767663,0<br>
> 56.826161736521,-19.711737565644,0<br>
> 56.552700712164,-19.532843001926,0<br>
> 56.251143522419,-19.401155031576,0<br>
> 55.930426526423,-19.320558337236,0<br>
> 55.6,-19.293426628671,0<br>
> 55.269573473577,-19.320558337236,0<br>
> 54.948856477581,-19.401155031576,0<br>
> 54.647299287836,-19.532843001926,0<br>
><br>
> 2010/8/4 Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>><br>
> Can you provide a working example (with the KML in question) that shows what you are doing?<br>
><br>
> Thanks,<br>
> Andreas.<br>
><br>
> On Aug 4, 2010, at 10:29 , Thomas PAPIN wrote:<br>
><br>
> > Hello,<br>
> ><br>
> > It's seems not possible to apply a strokeDashstyle from a KML layer or I didn't find how to do ? is that correct ?<br>
> > The only solution is to add the style after loadend event manually ?<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Dev mailing list<br>
> > <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
> > <a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
><br>
><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>
><br>
> _______________________________________________<br>
> Dev mailing list<br>
> <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
> <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>