Select to view content in your preferred language

KML file popup window

2016
2
01-23-2012 09:51 AM
MartynSmith
Emerging Contributor
I formatted a KML file with a simple HTML table in a CDATA block in the <description> tag.   The popup window looks great when I open the KML in google earth.
[ATTACH=CONFIG]11367[/ATTACH]

The KML file also works perfectly when I add it to an Arcgis.com web map.
[ATTACH=CONFIG]11370[/ATTACH]

When I load the KML into my flex viewer app however, the HTML table doesn't show.
[ATTACH=CONFIG]11368[/ATTACH]

Does anyone have any information on why this doesn't work, or how I can get a simple table to appear in the popup for a KML file?  I am creating the KMLs programmatically with python, so I relatively easily format these however I need to.

Thanks


edit:

did even more checking... followed these steps from an esri blog post on my polygon layer, then did a straight "layer to KML" from ArcMap, and this is all I get as output when I view that KML in flex viewer, so seems to me like something is busted in the API.

google earth:
[ATTACH=CONFIG]11374[/ATTACH]

flex viewer:
[ATTACH=CONFIG]11373[/ATTACH]
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: bjorn

I formatted a KML file with a simple HTML table in a CDATA block in the <description> tag.
...
The KML file also works perfectly when I add it to an Arcgis.com web map.


In general, the support for KML in the Flex API should be same as in the ArcGIS API for Javascript and ArcGIS.com web map, since they both use the same KML converter.  However, when it comes to actually displaying HTML it differs because the Adobe Flash platform have limited support for HTML. See http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html#htmlTex... for the short list of what is supported. Tables is not part of the Flash support for HTML.
0 Kudos
MartynSmith
Emerging Contributor
Ok thanks Bjorn.  Will have to use a workaround
0 Kudos