dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Popups
MediaPopupContent Class
A MediaContent popup element contains an individual or array of chart and/or image media elements to display within
a popup’s content.
ArcGIS
JS API
</a>
public class MediaPopupContent : dymaptic.GeoBlazor.Core.Components.Popups.PopupContent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 PopupContent 🡒 MediaPopupContent
Properties
MediaPopupContent.ActiveMediaInfoIndex Property
Index of the current active media within the popup’s media content. This will be the media that is currently viewed
when displayed.
public string? ActiveMediaInfoIndex { get; set; }
Property Value
MediaPopupContent.Description Property
Describes the media’s content in detail.
public string? Description { get; set; }
Property Value
MediaPopupContent.MediaInfos Property
Contains the media elements representing images or charts to display within the PopupTemplate. This can be an
individual chart or image element, or an array containing a combination of any of these types.
public System.Collections.Generic.HashSet<dymaptic.GeoBlazor.Core.Components.Popups.MediaInfo>? MediaInfos { get; set; }
Property Value
System.Collections.Generic.HashSet<MediaInfo>
MediaPopupContent.Title Property
Heading indicating what the media’s content represents.
public string? Title { get; set; }
Property Value
MediaPopupContent.Type Property
The type of Popup Content
public override string Type { get; }
Property Value
Methods
MediaPopupContent.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnAfterRenderAsync(System.Boolean) to “Register” the current component with it’s parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The calling, child component to register
Returns
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
MediaPopupContent.UnregisterChildComponent(MapComponent) Method
Undoes the “Registration” of a child with its parent.
public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The child to unregister
Returns
MediaPopupContent.ValidateRequiredChildren() Method
When a MapView is prepared to render, this will check to make sure that all properties with the
RequiredPropertyAttribute are provided.
public override void ValidateRequiredChildren();
Exceptions
MissingRequiredChildElementException
The consumer needs to provide the missing child component
MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components