Skip to main content
Question

How could it be possible to display all elements of a list (created by the FeatureMerger transformer) in a KML Description Balloon?


3 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 6, 2017

My first thought is using the ListConcatenator transformer to create one attribute per list attribute (comma separated for example) and display that attribute in the KML Balloon.


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • January 6, 2017

The balloon description is generally html.  You should be able to produce a fragment using the XMLTemplater and the fme:get-list-attribute function.

 

 

For example
<ul>
{for $x in fme:get-list-attribute("_list{}"return <li>{$x}</li>}
</ul>

 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • January 6, 2017
jdh wrote:

The balloon description is generally html.  You should be able to produce a fragment using the XMLTemplater and the fme:get-list-attribute function.

 

 

For example
<ul>
{for $x in fme:get-list-attribute("_list{}"return <li>{$x}</li>}
</ul>

 

You would then use the KMLPropertySetter and set the Description Balloon Content Type to HTML and the Content to the attribute generated by the XMLTemplater.  You would probably not want to Include the AttributeTable.

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings