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
KML - custom icon
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: KML - custom icon
Hi, I think, this needs to be somehow added to KML with direct link to custom marker icon
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 11 Apr 2014, 11:11
Re: KML - custom icon
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)
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)
Last edited by jpg on 15 Apr 2014, 18:37, edited 1 time in total.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: KML - custom icon
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 11 Apr 2014, 11:11
Re: KML - custom icon
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: KML - custom icon
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 11 Apr 2014, 11:11
Re: KML - custom icon
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.
Thank you for your help my problem is solved.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: