AttachmentsPopupElement

A pop-up element that displays the attachments of a GeoElement in a pop-up. Attachments can be shown as a preview that fits into the width of the pop-up or as a link. The format of attachments in the pop-up is determined by the AttachmentsPopupElement.displayType. If the geoelement has more than one attachment, they are displayed in the same order as the AttachmentsPopupElement.attachments collection.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(displayType: PopupAttachmentsDisplayType = PopupAttachmentsDisplayType.Auto)

Creates a new attachments pop-up element with the given PopupAttachmentsDisplayType.

Properties

Link copied to clipboard

A collection of the geoelement's attachments. If attachments haven't been fetched or the PopupElement.isEvaluated value is false, the collection is empty.

Link copied to clipboard

A string value describing the popup element in detail. The value can be an empty string.

Link copied to clipboard

Indicates how to display the attachments. If the value is PopupAttachmentsDisplayType.List, attachments show as links. If the value is PopupAttachmentsDisplayType.Preview, attachments expand to the width of the pop-up. A value PopupAttachmentsDisplayType.Auto allows your app to determine the most suitable default experience.

Link copied to clipboard

A string value indicating what the element represents. The value can be an empty string.

Inherited properties

Link copied to clipboard

True if the pop-up element is contained in the Popup.evaluatedElements, false otherwise.

Functions

Link copied to clipboard
suspend fun fetchAttachments(): Result<Unit>

Fetches the attachments from the Feature, creates PopupAttachment objects from them, and populates AttachmentsPopupElement.attachments. Attachments are not re-fetched if they have already been fetched. If PopupElement.isEvaluated is false, this method will have no effect.

Inherited functions

Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.