Select to view content in your preferred language

support of "htmlPopup" in the FlexAPI

877
3
08-18-2010 09:25 PM
TomSchuller
Frequent Contributor
Hy,
I want to ask if the "htmlPopup" from the RestAPI is supported in the ArcGIS FlexApi 2.0.
How can I use it?

Here is an example of the rest-htmlpopup:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/StantonCountyKSLeases/MapServer...

Thanks,
Tom
Tags (2)
0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
The only support is in the LayerDetails which as a htmlPopupType property to know if the layer supports popups or not:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/supportClasses/LayerDetails.html#ht...

You can try using HTTPService to retrieve the popup and then use the JSON decoder to parse it, but Flex has very limited HTML support, (unless you're using AIR), so you may want to try using this project instead:
http://code.google.com/p/flex-iframe/
0 Kudos
TomSchuller
Frequent Contributor
Dasa,
thank you for your answer.
I'm already using the "flex-iframe" solution.

Did you have plans to integrate the "htmlPopup" feature in your ArcGIS 2.0 FlexViewer?

Thanks,
Tom
0 Kudos
BjornSvensson
Esri Regular Contributor
Tom, support for htmlPopup is NOT likely in the next release of the ArcGIS Viewer for Flex, but it is something that might be in a subsequent release.
0 Kudos