Show predefined popups from a web map.
Many web maps contain predefined popups which are used to display the attributes associated with each feature layer in the map, such as hiking trails, land values, or unemployment rates. You can display text, attachments, images, charts, and web links. Rather than creating new popups to display information, you can easily access and display the predefined popups. The popup viewer control from the ArcGIS Toolkit currently supports label/value displays and plaintext HTML descriptions.
Tap on the features to prompt a popup that displays information about the feature.
- Create and load a
Map
using a URL. - Use a 'GeoViewTapped' event for when the user clicks on the map.
- Use the
IdentifyLayerAsync
method to identify the top-most feature. - Create a
PopupManager
using thePopup
from theIdentifyLayerResult
. - Use the
PopupManager
to populate thePopupViewer
UI element.
- IdentifyLayerResult
- Popup
- PopupManager
This sample uses a feature layer that displays reported incidents in San Francisco.
This sample uses the PopupViewer
UI control from the open source ArcGIS Runtime SDK for .NET Toolkit.
feature, feature layer, popup, toolkit, web map