hi to all list member,<br><br> This week-end, I wrote a quick GPX parser for Ka-Map, to display waypoints on a world map, nothing very fancy. Nevertheless, I decided to use graphical icons (KaXmlIcon) for the waypoints on Ka-Map
1.0, and I realised that contrary to Overlay reference that is on the wiki on Omniverdi, the variables to initialize for the icons are not x,y and img, but icon_x, icon_y and icon_img: am I right, or is there something I did not understand in the way I should use KaXmlIcon (see code below)? Anyway, using variables prefixed by "icon_", everything works very well!
<br><br> Otherwise, any hint on how best to implement MouseOver or Click callbacks on the icons would be most welcome...<br><br> My code looks like this:<br><br> if (iconName != "") {<br> var my_icon = new kaXmlIcon();
<br> my_icon.icon_src = "/relative_path/" + iconName + ".png";<br> my_icon.icon_h = my_icon.icon_w = 10;<br> my_icon.opacity = 1;<br> my_point.addGraphic(my_icon);
<br> } else {<br> var my_symbol = new kaXmlSymbol();<br> my_symbol.size = 6;<br> my_symbol.opacity = 0.7;<br> my_symbol.color = '#ff0000';<br> my_point.addGraphic(my_symbol);
<br><br><br>Thanks for your help! Is there a place, apart from this list, where I could post this GPX parser once it's ready ? One last thing, thanks for this project, Ka-Map is really powerful and easy to use!<br><br>
Regards,<br><br>Ed