MediaPopupElement class final
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.
- Inheritance
-
- Object
- PopupElement
- MediaPopupElement
Constructors
-
MediaPopupElement.new(List<
PopupMedia> media) -
Creates a new media pop-up element with the given List of PopupMedia.
factory
Properties
- description ↔ String
-
A string value describing the element in detail. The value can be an empty
string.
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
-
media
→ List<
PopupMedia> -
A List of PopupMedia objects that define images and charts displayed
in the pop-up window.
no setter
- 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
-
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