Icons Placed Incorrectly in .kml files

Started by ianL, February 06, 2016, 10:33:26 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ianL

Hello

I occasionally create .gpx and .kml files in OruxMaps and then export to other map viewers eg BaseCamp and Locus Map

When displayed in Locus the balloon-style waypoint icons specified in the .kml files are located incorrectly with the balloon completely below the true waypoint position In BaseCamp the Garmin waypoint flags appear to be positioned incorrectly too  

I have been advised that the error occurs because the icon "hotSpot" is incorrectly defined in the .kml file

E.g. see the following extract from a .kml file:

</text></BalloonStyle><IconStyle><Icon><href>http://www.oruxmaps.com/iconos/wpts_pin1.png%3C/href%3E%3C/Icon%3E%3Ccolor%3EFFFFFFFF%3C/color%3E%3CcolorMode%3Enormal%3C/colorMode%3E%3ChotSpot">http://www.oruxmaps.com/iconos/wpts_pin ... e><hotSpot">http://www.oruxmaps.com/iconos/wpts_pin1.png</href></Icon><color>FFFFFFFF</color><colorMode>normal</colorMode><hotSpot x="0.5" xunits="fraction" y="1" yunits="fraction" />

When I use a text editor to change y="1" to y="0" the balloon icons are displayed correctly with the sharp end pointing to the correct waypoint position



It is of interest that when I load the original (unedited) .kml file back in OruxMaps the balloon icons appear to be in the right positions!  It seems that OM handles the .kml instructions in a different way?



For alternative map viewers there appears to be a bug in the OM .kml file generator  Perhaps someone else could advise if they have had similar experience

orux

#1
Quote from: "ianL"Hello

I occasionally create .gpx and .kml files in OruxMaps and then export to other map viewers eg BaseCamp and Locus Map

When displayed in Locus the balloon-style waypoint icons specified in the .kml files are located incorrectly with the balloon completely below the true waypoint position In BaseCamp the Garmin waypoint flags appear to be positioned incorrectly too  

I have been advised that the error occurs because the icon "hotSpot" is incorrectly defined in the .kml file

E.g. see the following extract from a .kml file:

</text></BalloonStyle><IconStyle><Icon><href>http://www.oruxmaps.com/iconos/wpts_pin1.png%3C/href%3E%3C/Icon%3E%3Ccolor%3EFFFFFFFF%3C/color%3E%3CcolorMode%3Enormal%3C/colorMode%3E%3ChotSpot">http://www.oruxmaps.com/iconos/wpts_pin ... e><hotSpot">http://www.oruxmaps.com/iconos/wpts_pin1.png</href></Icon><color>FFFFFFFF</color><colorMode>normal</colorMode><hotSpot x="0.5" xunits="fraction" y="1" yunits="fraction" />

When I use a text editor to change y="1" to y="0" the balloon icons are displayed correctly with the sharp end pointing to the correct waypoint position



It is of interest that when I load the original (unedited) .kml file back in OruxMaps the balloon icons appear to be in the right positions!  It seems that OM handles the .kml instructions in a different way?



For alternative map viewers there appears to be a bug in the OM .kml file generator  Perhaps someone else could advise if they have had similar experience


You are right.



This bug is there since the first version!







orux

ianL

#2
Orux

Thanks very much for reply

What is "--- the first version"?

The bug seems to be one that has resulted from input data generated by OruxMaps - is that right?  If yes then will it be fixed in next version of OM or at least some time in the nearer future?

orux

#3
Quote from: "ianL"Orux

Thanks very much for reply

What is "--- the first version"?

The bug seems to be one that has resulted from input data generated by OruxMaps - is that right?  If yes then will it be fixed in next version of OM or at least some time in the nearer future?




Of course, it will be corrected next version (in a couple of weeks).





orux