Google Earth pushpin

I am importing Google Earth KML files from a client for establishing specific coordinate positions. When they display in Global Mapper, they are accompanied by a pushpin icon. Inside the KML, there is a hotspot tag that indicates what part of the icon represents the actual location, which is 20 pixels right and 2 pixels up from the bottom left-hand corner of the 64 x 64 pixel icon, the tip of the pin:
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
It looks like Global Mapper 13.2 is not paying attention to this tag because the tip of the pin is not being positioned correctly. Am I interpreting this correctly? Is there a way to fix this problem?
Hal
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
It looks like Global Mapper 13.2 is not paying attention to this tag because the tip of the pin is not being positioned correctly. Am I interpreting this correctly? Is there a way to fix this problem?
Hal
Comments
Can you provide a KML file with the <hotspot> tag so I can add support for positioning based on that?
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>center of the main square in Gettysburg PA.kml</name>
<Style id="sn_ylw-pushpin">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Style id="sh_ylw-pushpin">
<IconStyle>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<StyleMap id="msn_ylw-pushpin">
<Pair>
<key>normal</key>
<styleUrl>#sn_ylw-pushpin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#sh_ylw-pushpin</styleUrl>
</Pair>
</StyleMap>
<Placemark>
<name>center of the main square in Gettysburg PA</name>
<LookAt>
<longitude>-77.23074273248368</longitude>
<latitude>39.83087012264323</latitude>
<altitude>0</altitude>
<heading>0.000225597703654929</heading>
<tilt>0</tilt>
<range>216.4121669452563</range>
<gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
</LookAt>
<styleUrl>#msn_ylw-pushpin</styleUrl>
<Point>
<coordinates>-77.23111558761619,39.83091340547864,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>
I was able to update the KML importer to make use of both the HotSpot and the Scale, so now it shows with the tip of the pin where it should be. I have placed a new build at http://www.globalmapper.com/global_mapper13.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v13.xx installation folder to give it a try. If you are using the 64-bit v13 version there is a new build at http://www.globalmapper.com/global_mapper13_64bit.zip .
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com