Am I able to do this in the same placemark though?
I have a few lines and polygons in the same multigeometry, which are in the same placemark. I want to make some of the polygons red and some of the other shapes a different color. According to the KML dictionary, the styleurl can only be contained by a Placemark.
When you say styles with id's do you mean different polystyles? like this:
Code:
<Style id="defaultstyle">
<LineStyle>
<color>ff00ffff</color>
<width>4.0</width>
</LineStyle>
<PolyStyle id="defaultpolystyle">
<color>ff00ffff</color>
<fill>1</fill>
</PolyStyle>
<PolyStyle id="fatalstyle">
<color>ff0000ff</color>
<fill>1</fill>
</PolyStyle>
<PolyStyle id="injurystyle">
<color>ff0000ff</color>
<fill>0</fill>
</PolyStyle>
</Style>
I tried referencing each polygon in my multigeometry in the following way:
Code:
<Polygon>
<styleUrl>#fatalstyle</styleUrl>
.
.
.
</Polygon>
but the appropriate style doesnt show up