On Aug 4, 2010, at 11:19 , Thomas PAPIN wrote:

> So if I want to change the strokeStyle, I need to change it manually after 
> loading the KML
> or (but I don't like that) edit Format/Kml.js and add a hack to support a 
> non-official tag

Or you use rule based styling instead of KML's inline styles.

Andreas.

> 
> Thomas
> 
> 2010/8/4 Andreas Hocevar <ahoce...@opengeo.org>
> Hi,
> 
> there is no strokeStyle in KML. See 
> http://code.google.com/apis/kml/faq.html#linestyle
> 
> Regards,
> Andreas.
> 
> On Aug 4, 2010, at 11:05 , 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
> >        </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 <ahoce...@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@openlayers.org
> > > http://openlayers.org/mailman/listinfo/dev
> >
> >
> >
> > --
> > Andreas Hocevar
> > OpenGeo - http://opengeo.org/
> > Expert service straight from the developers.
> >
> >
> > _______________________________________________
> > Dev mailing list
> > Dev@openlayers.org
> > http://openlayers.org/mailman/listinfo/dev
> 
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
> 
> 
> _______________________________________________
> Dev mailing list
> Dev@openlayers.org
> http://openlayers.org/mailman/listinfo/dev

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev

Reply via email to