devdattaT / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Google earth can't parse KML correctly with <color> inside <IconStyle> #260

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which products are affected?
Google Earth

What steps will reproduce the problem?
1. create a KML with <color> element inside <IconStyle>
2. Open the KML with Google Earth
3. The 'pin' for the placemarker is missing

What is the expected output or behavior? What do you see instead?
I should see the pin atleast and accroding to KML reference it should work
with <Icon> element also:
The color specified in the <color> element of <IconStyle> is blended with
the color of the <Icon>.

What application versions (if any) are you using?
google earth 5.0

Which operating systems and browsers are affected?
WinXP SP2

Please provide any additional information (code snippets/links) below.
<Style id="FloodAdvisory">
  <IconStyle>
     <Icon>
       <href>http://maps.google.com/mapfiles/ms/icons/blue-dot.png</href> 
</Icon>
    <color>00FF99</color>
  </IconStyle>
</Style>

Original issue reported on code.google.com by email2am...@gmail.com on 6 Mar 2009 at 12:07

GoogleCodeExporter commented 8 years ago
Hi, I think your color is invalid... it should be in the form aabbggrr:

<color>ff00ff99</color>

Original comment by api.roman.public@gmail.com on 27 Mar 2009 at 11:25

GoogleCodeExporter commented 8 years ago
What does aa stands for?

If I provide 32-bit color then it won't work with google map. Is there any 
work-around?

Original comment by email2am...@gmail.com on 28 Mar 2009 at 12:14

GoogleCodeExporter commented 8 years ago
aa is alpha (opacity).

Hmm, I was pretty confident Google Maps supported 32-bit colors. I'll 
investigate.

Original comment by api.roman.public@gmail.com on 28 Mar 2009 at 12:50