MediaPopupElement

A pop-up element that displays the media (images and charts) of a GeoElement in a pop-up. The order in which images or charts are displayed in the pop-up is determined by the order of the PopupMedia objects in the MediaPopupElement.media collection. If you want to display a chart, you must create an image of the chart by calling PopupMedia.generateChart. Use the ChartImageParameters to specify the height and width of the ChartImage and whether it includes a legend.

Note that videos are only supported as attachments and can be viewed with AttachmentsPopupElement.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(media: Iterable<PopupMedia> = listOf())

Creates a new media pop-up element with the given List of PopupMedia.

Properties

Link copied to clipboard

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

Link copied to clipboard

A MutableList of PopupMedia objects that define images and charts displayed in the pop-up window.

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.

Inherited functions

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

Convert an object to JSON string.