KML : fill-color, line-color, line-width

523 views
Skip to first unread message

Chaitra

unread,
Oct 23, 2009, 9:50:38 AM10/23/09
to KML Developer Support - Getting Started with KML
How to specify the fill-color, line-color, line-width for a polygon,
and line width for a polyline ?

for example,
to specify the color of polyline we use following :
<polyStyle>
<color>ffffff</color>
</polystyle>

barryhunter (KML Guru)

unread,
Oct 23, 2009, 7:16:19 PM10/23/09
to KML Developer Support - Getting Started with KML
line-color : use <LineStyle><color>

fill-color: thats the <PolyStyle><color> like in your example

line-width: <LineStyle><width>

Chaitra

unread,
Oct 26, 2009, 12:50:27 AM10/26/09
to KML Developer Support - Getting Started with KML
Hi Barry hunter,
Thanks a lot for you response.
I tried using <LineStyle><width> as u suggested,but still doesnt work,
here is the code :

<Style id="Test">
<LineStyle>
<width>7</width>
</LineStyle>
<PolyStyle>
<color>ab330033</color>
<fill>1</fill>
<outline>1</outline>
</PolyStyle>
</Style>


Where is the code going wrong? even though i specify the width as 7,
it takes width as default i.e 3 .
Reply all
Reply to author
Forward
0 new messages