HTML pop-up from Feature Layer

2011
2
Jump to solution
04-27-2012 03:39 PM
MichaelKnapp
Occasional Contributor
I apologize for the newbie question, but I'm wondering if there's a way to display a formatted HTML pop-up for a Feature Layer in the ArcGIS Viewer for Flex (2.5).

We've got a Feature Layer for which we've set the HTML pop-up in ArcGIS. The "HTML Popup Type" is set to "esriServerHTMLPopupTypeAsHTMLText" and when we add the service to ArcMap, we can activate the HTML popup tool without a problem, but when we add the Feature Layer to the Flex Viewer, I'm not sure how to get the HTML pop-up to display as it was formatted in ArcMap.

Unfortunately, the service is currently private, otherwise, I'd provide the URL here.

Or, is my only choice to use the "popupconfig" attribute in the <layer> tag.? The only catch here is that the HTML popup was created using semi-fancy XSL the conditionally formatted based on attribute values.

Any advice is appreciated.

Thanks.

Mike Knapp
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Mike,

   You are not going to get the ArcMap html popup in Flex. Your only choice is to recreate the essential portions in the config popup. Th number of supported html tag is very limited as Adobe Flex itself is very limited in the tags it recognizes. And the XSL is pretty much out the door. Sorry to be the bearer of the bad news but I think you already has a seeking suspicion.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Mike,

   You are not going to get the ArcMap html popup in Flex. Your only choice is to recreate the essential portions in the config popup. Th number of supported html tag is very limited as Adobe Flex itself is very limited in the tags it recognizes. And the XSL is pretty much out the door. Sorry to be the bearer of the bad news but I think you already has a seeking suspicion.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
MichaelKnapp
Occasional Contributor
Thanks for the reply Robert. Disappointing news, but I think we'll be able to come up with an alternative.

I also found out the hard way this afternoon that pop-ups will not work if you hide the "Shape" field!

-Mike Knapp
0 Kudos