Support of hotspot tag in Google Maps

565 views
Skip to first unread message

rleners

unread,
Mar 29, 2009, 4:23:11 PM3/29/09
to KML Developer Support - Getting Started with KML
I do not succeed in achoring the center of a custom icon to a point
placemark in Google Maps. I have the impression that the <hotspot> tag
is ignored. Here is the code:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>Sommets</name>
<description><![CDATA[Sommets les plus hauts de chaque groupe]]></
description>
<Style id="SommetPlusHautMassif">
<IconStyle>
<Icon>
<href>http://www.myserver.com/Icon.png</href>
</Icon>
<hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
</IconStyle>
</Style>
<Placemark>
<name>Cima Presanella</name>
<description><![CDATA[]]></description>
<styleUrl>#SommetPlusHautMassif</styleUrl>
<Point>
<coordinates>10.663433,46.220703,0.000000</coordinates>
</Point>
</Placemark>

Do I miss something?

rleners

unread,
Mar 29, 2009, 4:35:58 PM3/29/09
to KML Developer Support - Getting Started with KML
After importing the .kml into Google Maps and "re-exporting" it (via
displaying it in GE), I see that the <hotspot> tags have been
suppressed in the .kml

barryhunter (KML Guru)

unread,
Mar 29, 2009, 6:02:21 PM3/29/09
to KML Developer Support - Getting Started with KML
KML support in Google Maps is very basic, and yes agree the hotspot
tag does nothing. (in particular in relation to My Maps which you
appear to be talking about)

I guess its related this request:
http://code.google.com/p/kml-samples/issues/detail?id=202

rleners

unread,
Mar 30, 2009, 7:06:59 AM3/30/09
to KML Developer Support - Getting Started with KML
Thanks for the response (and yes, it is related to My Maps). It is
strange though because the hotspot tag is listed as supported in
http://code.google.com/intl/fr-BE/apis/kml/documentation/kmlelementsinmaps.html

I finally found a workaround, using the fact (better, my assumption)
that it is the middle of the lower edge of the "padded" icon that is
anchored to the point.
> > Do I miss something?- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

barryhunter (KML Guru)

unread,
Mar 30, 2009, 8:04:36 AM3/30/09
to KML Developer Support - Getting Started with KML
That document is talking about pasting a url of a KML file into the
search box. Personally not convinced that its totally accurate anyway,
support seems even more limited than indicated.


the 'My Maps' import of KML is even more limited - mainly as the data
is represented in the My Maps format, which doesnt implement many
features of KML. This doesnt appear to be documented anywhere.



On Mar 30, 12:06 pm, rleners wrote:
> Thanks for the response (and yes, it is related to My Maps). It is
> strange though because the hotspot tag is listed as supported inhttp://code.google.com/intl/fr-BE/apis/kml/documentation/kmlelementsi...
Reply all
Reply to author
Forward
0 new messages