[OpenLayers-Dev] strokeDashstyle and KML
Thomas PAPIN
thomas.papin at gmail.com
Wed Aug 4 08:56:56 EDT 2010
The strokeStyle was invented by me :) (just example of what I wanted)
In fact I just wanted to change the stroke style.
So now it's working using a StyleMap and adding extra attributes to my
Placemark.
What I just learn is that you cannot combine StyleMap +a style defined by
<styleUrl>
If styleUrl is set, the StyleMap is no more used, except if I forgot
something :)
2010/8/4 <christopher.schmidt at nokia.com>
>
> 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>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100804/d7adaebc/attachment.html
More information about the Dev
mailing list