[OpenLayers-Dev] strokeDashstyle and KML

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Wed Aug 4 07:49:42 EDT 2010


On Aug 4, 2010, at 5:05 AM, ext Thomas PAPIN wrote:

> I want to draw a circle with dash stroke
> 
> <kml xmlns="http://www.opengis.net/kml/2.2">
>   <Document>
>     <name>My Layer</name>
>     <description>My Layer</description>
>     <Style id="circles">
>       <LineStyle>
>          <width>1</width>
>          <color>AAAA0101</color>
>          <strokeStyle>dashlong</strokeStyle> <-------- Here what I want to be able to do

I see no evidence in the KML spec (http://code.google.com/apis/kml/documentation/kmlreference.html)
that KML supports strokeStyle as a style property. OpenLayers
does not currently support any additional keywords in KML 
styles that are not in the KML spec, as far as I know.

-- Chris

>        </LineStyle>
>     </Style>
>                <Placemark>
>               <name>Circles</name>
>               <description>Circles</description>
>               <styleUrl>#circles</styleUrl>
>               <Polygon>
>                  <outerBoundaryIs>
>                         <LinearRing>
>                         <coordinates>
>                                                                 57.524815584992,-21.089077666611,0
>                                                                 57.491623770767,-20.775797326738,0
>                                                                 57.401366068943,-20.47264076493,0
>                                                                 57.257078399726,-20.188726311404,0
>                                                                 57.063349621694,-19.932548767663,0
>                                                                 56.826161736521,-19.711737565644,0
>                                                                 56.552700712164,-19.532843001926,0
>                                                                 56.251143522419,-19.401155031576,0
>                                                                 55.930426526423,-19.320558337236,0
>                                                                 55.6,-19.293426628671,0
>                                                                 55.269573473577,-19.320558337236,0
>                                                                 54.948856477581,-19.401155031576,0
>                                                                 54.647299287836,-19.532843001926,0
> 
> 2010/8/4 Andreas Hocevar <ahocevar at opengeo.org>
> Can you provide a working example (with the KML in question) that shows what you are doing?
> 
> Thanks,
> Andreas.
> 
> On Aug 4, 2010, at 10:29 , Thomas PAPIN wrote:
> 
> > Hello,
> >
> > It's seems not possible to apply a strokeDashstyle from a KML layer or I didn't find how to do ? is that correct ?
> > The only solution is to add the style after loadend event manually ?
> >
> >
> > _______________________________________________
> > Dev mailing list
> > Dev at openlayers.org
> > http://openlayers.org/mailman/listinfo/dev
> 
> 
> 
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
> 
> 
> <ATT00001..txt>




More information about the Dev mailing list