Hi Group.
im wondering how to show multiple polygons each one declared with a
different style id.
below is an example file with 3 polygons and 2 styles, which is not
working as expected. on google maps, the polystyle values are used as
declared in style #b, wheter the linestyle is applied correctly as
defined in style #a and style#b.
kml;
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://www.opengis.net/kml/2.2" xmlns:gx="http://
www.google.com/kml/ext/2.2" xmlns:kml="
http://www.opengis.net/kml/2.2"
xmlns:atom="
http://www.w3.org/2005/Atom">
<Document>
<nameTest</name>
<Style id="a">
<BalloonStyle>
<text><![CDATA[<font font size='3' color="#aa0000"><b>Test A</b></
font>]]></text>
</BalloonStyle>
<LineStyle>
<color>ffffFF00</color>
<width>3</width>
</LineStyle>
<PolyStyle>
<color>7fff0000</color>
<fill>1</fill>
<outline>1</outline>
</PolyStyle>
</Style>
<Style id="b">
<BalloonStyle>
<text><![CDATA[<font font size='3' color="#aa0000"><b>Test B</b></
font>]]></text>
</BalloonStyle>
<LineStyle>
<color>ff00FF00</color>
<width>3</width>
</LineStyle>
<PolyStyle>
<color>7faa0000</color>
<fill>1</fill>
<outline>1</outline>
</PolyStyle>
</Style>
<Placemark id="42">
<name>Test A</name>
<description></description>
<Snippet maxLines="0"></Snippet>
<styleUrl>#a</styleUrl>
<Polygon>
<extrude>1</extrude>
<tessellate>1</tessellate>
<outerBoundaryIs>
<LinearRing>
<coordinates>
...</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
<Placemark id="43">
<name>Test A</name>
<description></description>
<Snippet maxLines="0"></Snippet>
<styleUrl>#a</styleUrl>
<Polygon>
<extrude>1</extrude>
<tessellate>1</tessellate>
<outerBoundaryIs>
<LinearRing>
<coordinates>
...</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
<Placemark id="51">
<name>Test B</name>
<description></description>
<Snippet maxLines="0"></Snippet>
<styleUrl>#b</styleUrl>
<Polygon>
<extrude>1</extrude>
<tessellate>1</tessellate>
<outerBoundaryIs>
<LinearRing>
<coordinates>
...</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Document>
</kml>
thank you
joerg