PolyStyle color not working in Google Maps

423 views
Skip to first unread message

OahuRE

unread,
May 22, 2011, 2:48:28 PM5/22/11
to kml-support-g...@googlegroups.com
It seems the below KML is not working in Google Maps.  No matter what I do it shows the fill as the same color.
 
     <PolyStyle>
        <color>7f00ff00</color>
      </PolyStyle>
 
I have attached the complete file is anyone wants to try it.
test.kml

OahuRE

unread,
May 22, 2011, 4:28:35 PM5/22/11
to kml-support-g...@googlegroups.com
OK, I figured it out.  I needed the following:
 
  <Style id="style1">
    <LineStyle>
      <color>40000000</color>
      <width>3</width>
    </LineStyle>
    <PolyStyle>
      <color>73FF0000</color>
      <fill>1</fill>
      <outline>1</outline>
    </PolyStyle>
  </Style>
 
and then I put the following line in the Placemark and now the color can be changed.
 
<styleUrl>#style1</styleUrl>
 
Reply all
Reply to author
Forward
0 new messages