AttachmentsPopupElement class final

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.

Inheritance

Constructors

AttachmentsPopupElement.new(PopupAttachmentsDisplayType displayType)
Creates a new attachments pop-up element with the given PopupAttachmentsDisplayType.
factory

Properties

attachments List<PopupAttachment>
A collection of the geoelement's attachments. If attachments haven't been fetched or the PopupElement.isEvaluated value is false, the collection is empty.
no setter
description String
A string value describing the popup element in detail. The value can be an empty string.
getter/setter pair
displayType PopupAttachmentsDisplayType
Indicates how to display the attachments.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEvaluated bool
True if the pop-up element is contained in the Popup.evaluatedElements, false otherwise.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
A string value indicating what the element represents. The value can be an empty string.
getter/setter pair

Methods

fetchAttachments() Future<void>
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
toJsonString() String
Returns a JSON representation of this Object as a String.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited