Hi,

I have a question,

i have create a KML Generator using PHP and i didn't use <description> to declare the description but i try for using <extendeddata> like the script below

The script below will produce a KML file

and i have test the KML using Gmaps and it is running smoothly, but when i try runing it on Nokia Maps / Here Map i cannot displaying the description and only displaying blank ballon

kindly need your advice, this is the script, you can see the result on http://indo-maps.com/RambuSurabaya.html

....

$kml = array ('<?xml version="1.0" encoding="UTF-8"?>');
$kml[] = ' <kml xmlns="http://earth.google.com/kml/2.1">';
$kml[] = ' <Document>';
$kml[] = ' <Style id="LaranganStyle">';
$kml[] = ' <IconStyle id="Laranganicon">';
$kml[] = ' <Icon>';
$kml[] = ' <href>http://indo-maps.com/icon/larangan16.png</href>';
$kml[] = ' </Icon>';
$kml[] = ' </IconStyle>';
$kml[] = ' </Style>';
$kml[] = ' <Style id="PetunjukStyle">';
$kml[] = ' <IconStyle id="PetunjukIcon">';
$kml[] = ' <Icon>';
$kml[] = ' <href>http://indo-maps.com/icon/petunjuk16.png</href>';
$kml[] = ' </Icon>';
$kml[] = ' </IconStyle>';
$kml[] = ' </Style>';
$kml[] = ' <Style id="PeringatanStyle">';
$kml[] = ' <IconStyle id="PeringatanIcon">';
$kml[] = ' <Icon>';
$kml[] = ' <href>http://indo-maps.com/icon/peringatan16.png</href>';
$kml[] = ' </Icon>';
$kml[] = ' </IconStyle>';
$kml[] = ' </Style>';
$kml[] = ' <Style id="PerintahStyle">';
$kml[] = ' <IconStyle id="PerintahIcon">';
$kml[] = ' <Icon>';
$kml[] = ' <href>http://indo-maps.com/icon/petunjuk16.png</href>';
$kml[] = ' </Icon>';
$kml[] = ' </IconStyle>';
$kml[] = ' </Style>';



while ($row = @mysql_fetch_assoc($result))
{
$kml[] = ' <Placemark id="placemark' . $row['id'] . '">';
$kml[] = ' <name>Kode Rambu : ' . htmlentities ($row['Code']) . '</name>';
$kml[] = ' <Snippet maxLines="0"></Snippet>';
$kml[] = ' <Style>';
$kml[] = ' <BalloonStyle>';
$kml[] = ' <text><![CDATA[
<table width="280" border="2" cellspacing="0" cellpadding="0">
<tr>
<td align="Left"><h5><font color="#12127D">$[Rambu]</font></h5>
</tr>
<tr>
<td align="Left"><h5><font color="#12127D">$[Lokasi]</font></h5>
</tr>
<tr>
<td align="Left"><h5><font color="#12127D">$[Kondisi]</font></h5>
</tr>
<tr>
<td align="Left"><h5><font color="#12127D">$[Tgl_Pasang]</font></h5>
</tr>
<tr>
<td align="center"><img src="$[Gambar]" width="200" /> </td>
</tr>
</table>
]]></text>';
$kml[] = ' </BalloonStyle>';
$kml[] = ' </Style>';
$kml[] = ' <styleUrl>#' . ($row['Jenis']) .'Style</styleUrl>';
$kml[] = ' <ExtendedData>';
$kml[] = ' <Data name="Rambu">';
$kml[] = ' <value>Keterangan : Rambu ' . htmlentities($row['Rambu']) . '</value>';
$kml[] = ' </Data>';
$kml[] = ' <Data name="Lokasi">';
$kml[] = ' <value>Lokasi : ' . htmlentities($row['Lokasi']) . " " . htmlentities($row['Keterangan']) . '</value>';
$kml[] = ' </Data>';
$kml[] = ' <Data name="Kondisi">';
$kml[] = ' <value>Kondisi : ' . htmlentities($row['Kondisi']) . '</value>';
$kml[] = ' </Data>';
$kml[] = ' <Data name="Tgl_Pasang">';
$kml[] = ' <value>Tanggal Pasang/Modifikasi : ' . htmlentities($row['Tgl_Pasang']) . '</value>';
$kml[] = ' </Data>';
$kml[] = ' <Data name="Gambar">';
$kml[] = ' <value>' . htmlentities($row['Gambar']) . '</value>';
$kml[] = ' </Data>';
$kml[] = ' </ExtendedData>';
$kml[] = ' <Point>';
$kml[] = ' <coordinates>' . $row['Longitude'] . ',' . $row['Latitude'] . '</coordinates>';
$kml[] = ' </Point>';
$kml[] = ' </Placemark>';

}

$kml[] = '</Document>';
$kml[] = '</kml>';
$kmlOutput = join("\n", $kml);
header ('Content-type: application/vnd.google-earth.kml+xml');
echo $kmlOutput;

....


kindly need your help


Regards

Bayu