×
Namespaces

Variants
Actions

Talk:HERE Maps API - How to create a KML data file

From Nokia Developer Wiki
Jump to: navigation, search

Bayyanmc - KML using extendeddata

Hi,

I have a question, i have create a KML Generator but i didn't use <description> to decalre the description

but i try to using <extendeddata> like the script below, i have test the KML using Gmaps and it is smoothly, but when i try ro use it on Nokia Maps / Here Map i cannot displaying the description of the point

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

$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>';

bayyanmc (talk) 10:42, 22 November 2013 (EET)

Hamishwillee - Bayyanmc - stackoverlfow

Hi Bayyanmc

Unless the query is directly related to the article it is best to ask on a discussion board, where more people watching will be able to answer. You can always cross link to the article as somewhere you have already visited. For Maps discussions, stackoverflow is used: http://stackoverflow.com/questions/tagged/nokia-location-api

Regards

H

hamishwillee (talk) 05:14, 25 November 2013 (EET)

 

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×