KML - custom icon

Phoca Maps - displaying maps in Joomla! CMS
jpg
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Apr 2014, 11:11

KML - custom icon

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: KML - custom icon

Post by Jan »

Hi, I think, this needs to be somehow added to KML with direct link to custom marker icon :idea:

Jan
If you find Phoca extensions useful, please support the project
jpg
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Apr 2014, 11:11

Re: KML - custom icon

Post 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. :idea:

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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: KML - custom icon

Post 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 :idea:

Jan
If you find Phoca extensions useful, please support the project
jpg
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Apr 2014, 11:11

Re: KML - custom icon

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: KML - custom icon

Post 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 :idea: :-(

Jan
If you find Phoca extensions useful, please support the project
jpg
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Apr 2014, 11:11

Re: KML - custom icon

Post 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. :|
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: KML - custom icon

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply