Multiple popup elements

This sample demonstrates how to specify various types of popup elements within the PopupTemplate's content. There are six types of popup elements: fields, media, text, attachments, custom, and relationship. These elements can be used on their own or combined within the same template. The order in which the elements are listed determines how they will display within the popup. The popup displays fields in a tabular format, a list of related records, a descriptive text, media elements such as a chart and images, and lastly any attachments that may be associated with the feature.

In addition to working with multiple elements, this sample also demonstrates how to work with related tables. The fieldInfos and chart display information pulled from a related table to display various tree types within a set area.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.