Displaying / Using HTML Popup info

1642
4
01-19-2012 07:41 AM
MarkCollins
Occasional Contributor
Hello,

I am trying to determine if there is a way to leverage the HTML Popup defined a layer? I would like to be able to display any HTML popup our applications users have defined on there layers. Is there way to leverage / use these HTML popups with the WPF SDK? I have found several example of defining custom map tips in code or xaml but I would really like to just use what is defined by the layer.

Here is a sample of a layer with an HTML popup defined:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/StantonCountyKSLeases/MapServer...
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/StantonCountyKSLeases/MapServer...

Thanks,
Mark
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
This is a related thread: forums.arcgis.com/threads/43917-HTML-Popups-for-Silverlight. ArcGIS API for WPF also does not support HTML popups but you can use MapTip to display the attributes.
0 Kudos
MarkCollins
Occasional Contributor
Thanks for the information.

Do you know if the popup information is available on any of the ESRI objects for the ArcGISDynamicMapServiceLayer or something similar? (I looked and didn't see anything that sounded right) If so I could grab that info and throw it in a browser control possibly....
0 Kudos
JenniferNery
Esri Regular Contributor
Unfortunately this is not a metadata that the API has made available for you. However you can easily make parse this JSON: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/StantonCountyKSLeases/MapServer.... Where "1" in the url is the feature ID.
0 Kudos
MarkCollins
Occasional Contributor
Excellent, thank you very much.
0 Kudos