[OpenLayers-Dev] strokeDashstyle and KML

Thomas PAPIN thomas.papin at gmail.com
Wed Aug 4 05:05:27 EDT 2010


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
       </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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100804/d2426f32/attachment.html


More information about the Dev mailing list