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'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 <styleUrl><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"><<a href="mailto:christopher.schmidt@nokia.com">christopher.schmidt@nokia.com</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;"><div class="im"><br>
On Aug 4, 2010, at 5:05 AM, ext 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>
<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>
> </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>
</div></div>> <ATT00001..txt><br>
<br>
</blockquote></div><br>