Question

How to add specific code to a kml balloon using KMLPropertySetter

  • 3 December 2019
  • 1 reply
  • 7 views

Hi everyone, I'm new on FME Desktop.

I need to create a kml from excel, with some specific format (see screenshot below)

I haven't been able to put the balloon code into KML PropertyFormatter transformation tool. Any help would be appreciated!

Please find the example kml file attached.

Thanks a lot!


1 reply

Badge +22

Since you want a custom layout,  you will need to create the html code.

On the KMLPropertySetter, set the Content Type  to HTML, Include Attribute Table to No.In the Content open the text editor and enter something like

<h1>{Lote A}</h1>
<table>
 <tr> 
  <th>Rol</th>
  <td>{3306-32</td>
</tr>
<tr>
 <th>Nombre</th>
 <td>{Lote A}</td>
</tr>
...
</table>
<h1>Propietario</h1>
<table>...</table>

with the values in {} coming from attributes in the excel file.

Reply