Page 1 of 1
KML - custom icon
Posted: 11 Apr 2014, 11:33
by jpg
Hello
I phocamaps used with satisfaction.
But, the only problem is this one:
When calling KML files, custom icon are replaced by generic markers.
From map to map, markers are also of different type and different Colors.
I have not found a solution to this problem.
Thank yo
Re: KML - custom icon
Posted: 13 Apr 2014, 18:48
by Jan
Hi, I think, this needs to be somehow added to KML with direct link to custom marker icon
Jan
Re: KML - custom icon
Posted: 14 Apr 2014, 22:50
by jpg
Thank you for your quick answer .
I have progressed. I find my icon when here is what i have programmed:
1 - I have created an icon
2 - I put in a phocamapskml/icons folder
3 - I added an icon with phocamaps/icons
4 - phocamaps/icon tells me a link
5 - I have pasted the link I put in the kml file called as follow :
<IconStyle>
<scale>1.2</scale>
<Icon>
<href>http://www.taille-vent.org/******/phoca ... .png</href>
</Icon>
<hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
</IconStyle>
I still have the detail.
The map appears with the maximum scale, despite a zoom to 9 of the ad hoc field.
My site is taille-vent.org (menu "choisir un site de vol", then small trial link below : testcarte)
Re: KML - custom icon
Posted: 14 Apr 2014, 22:59
by Jan
Hi, unfortunately I cannot test if the link to icon is right, as you have added *** there - check if the path to images is correct and try to ask google maps api if your KML is Ok
Jan
Re: KML - custom icon
Posted: 15 Apr 2014, 18:36
by jpg
OK, it's : taille-vent.org/taillevent32/phocamapskml/icones/deco.png
or taille-vent.org/taillevent32/phocamapskml/icones/attero.png
PS : I think that the scale fits the distance between the icons. Is it true ?
Jean Philippe
Re: KML - custom icon
Posted: 17 Apr 2014, 15:44
by Jan
Hi, so if the path is correct and the same path is set in KML, then really no idea what can be wrong there, I think, then this is a question on Google Maps developer forum
Jan
Re: KML - custom icon
Posted: 18 Apr 2014, 23:56
by jpg
Yes, I think that for KLM export with Google-earth, sometimes those things can be a little glitchy.
Thank you for your help my problem is solved.
Re: KML - custom icon
Posted: 21 Apr 2014, 18:53
by Jan
Ok