Select to view content in your preferred language

How to use "Mapping.Popups" to display Pop-ups defined in a web map?

1431
3
07-20-2017 08:14 AM
MarkBennett
Regular Contributor

I am trying to display popups on a mapView loaded a webmap with the popup definition for each layers. So far, I only saw display information by use Overlay or CallOut. However, it seams that there is entire namespace (Esri.ArcGISRuntime.Mapping.Popups) designed for that purpose. Anyone know how to use it and saw a sample of how to use it?

Think,

Ming

0 Kudos
3 Replies
MarkBennett
Regular Contributor

Here is the description of the Popups Namespace:

Contains classes that allow the display the data of a feature, graphic or pixel (geo elements) in a way that is easier to understand than basic attributes in a row/column format via a 'popup' graphical element that floats on top of the map. Popups are part of the ArcGIS information model and can be configured for individual layers (or sublayers) in a map via a popup definition. They can also be used with graphics and graphics overlays, and pixels and rasters. Popups convert raw data into an information display that is both powerful and easy to read. Some common uses of popups are: display results from an identify (aka. a user map view click) and editing a feature by adding/updating/deleting attributes/geometry.

0 Kudos
JoeHershman
MVP Regular Contributor

The PopupDefinition just gives you the definition of how the Popup is configured for that feature class.  Everything else you have to do yourself.  I think the documentation gives the impression that there is more to it.  But you will need to create your own control and then with the PopupDefinition can setup how that information is displayed.  You still need to add the control as an Item in the MapView.Overlays collection

Thanks,
-Joe
0 Kudos
MarkBennett
Regular Contributor

It seams this is the case. 

Because identify/pop-up is such common task for almost every map related applications, I thought The API will have a method for this function. Or, at lease have a example in the sample code.

Thanks for the reply!

Ming

0 Kudos