This has been driving me crazy for years now: if, in a placemark's KML
code, I supply the URL of an icon on
maps.google.com, Google Earth
often seems to say to me, "Oh no no, you didn't want THAT ugly old
icon... here, I've got a better one for you! Oh, and you were wrong
about the hotSpot too, I'll fix that." Here's an example:
<?xml version="1.0" standalone="yes"?>
<kml xmlns="
http://earth.google.com/kml/2.2">
<Document>
<Placemark>
<Point><coordinates>-67.129444,18.494722,72</coordinates></
Point>
<Style>
<IconStyle>
<Icon><href>
http://maps.google.com/mapfiles/kml/pal2/
icon48.png</href></Icon>
<hotSpot x="0.5" xunits="fraction" y="0.5"
yunits="fraction" />
</IconStyle>
</Style>
<name>Aguadilla airport</name>
</Placemark>
</Document>
</kml>
If you open that icon (
http://maps.google.com/mapfiles/kml/pal2/
icon48.png) in your Web browser, you'll see a gray airplane inside of
a circle. But in GE, it shows up as a blue-gradient airplane with no
circle -- even though the URL in the "Get Info" dialog hasn't changed.
Now, I've learned to live with this icon-replacement weirdness...
fine, GE thinks it has prettier icons. But now I notice that it's
overriding my hotspots too, and that's NOT COOL. In the case of this
"airport" icon, GE seems to think that the best way to display it is
with the tail of the airplane sitting on the point, rather than
centering the icon on the point. The <hotSpot> tag that I've put in
the icon's style definition, which should place the "anchor" in the
middle of the graphic, has no effect. The only way I can get the
icons where I want them is to make copies of Google's graphics and
host them myself -- which I'd rather not do.
I searched these forums for an answer to this problem and turned up
nothing. Am I really the only one irked by Google Earth having its
own idea of which graphic should be referred to by certain URLs?