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?

  • January 6, 2017
  • 3 replies
  • 17 views
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • 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+40
  • 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+40
  • 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>

 

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.