Custom icon in kml file
Posted: 20 Oct 2011, 16:52
Hello everybody,
I am using joomla 1.5 and PM 1.1.1
The problem:
I have a kml file with multiple placemarks. Everything works fine.
I wanted to change the icon image of the placemarks. Created an image, uploaded to a server. Inserted the code. After that only the first placemark is being displayed (with the new icon). The rest disappeared. Moreover when zooming the map the first one disappears as well and the map stops.
Am I doing something wrong, or is it a bug?
Here's the code:
Thanks in advance for any help.
Regards
I am using joomla 1.5 and PM 1.1.1
The problem:
I have a kml file with multiple placemarks. Everything works fine.
I wanted to change the icon image of the placemarks. Created an image, uploaded to a server. Inserted the code. After that only the first placemark is being displayed (with the new icon). The rest disappeared. Moreover when zooming the map the first one disappears as well and the map stops.
Am I doing something wrong, or is it a bug?
Here's the code:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>test.kml</name>
<Style id="randomColorIcon">
<IconStyle>
<Icon>
<href>http://life.aquila-it.pl/phocamapskml/image5h.png</href>
</Icon>
<color>ff00ff00</color>
<scale>0.6</scale>
</IconStyle>
</Style>
<Placemark>
Regards