Types
import type { AnimationOptions, MediaElement, Georeference, HTMLImageContainer, ImageBinarySource } from "@arcgis/core/layers/media/types.js";

Type definitions

AnimationOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 4.28

Represents animation options, a collection of properties that apply when the ImageElement.image is an animated GIF or APNG.

playing

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the animated image should play its animation.

duration

Property
Type
number | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Represents the number of seconds it takes to play through the layer's animation once.

repeatType

Property
Type
"none" | "loop" | "oscillate" | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Determines how to repeat the animation of a layer when the animation cycle ends.

repeatDelay

Property
Type
number | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Represents the number of seconds to delay before repeating an animation cycle.

MediaElement

Type definition
Since
ArcGIS Maps SDK for JavaScript 4.24

Image and video elements referenced in the MediaLayer.

See also

Georeference

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the georeferencing information for a media layer element. This type allows specifying how an image or video is positioned and oriented in map coordinates. Supported georeferencing types include:

HTMLImageContainer

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Represents HTML elements that can supply image content for media layers.

ImageBinarySource

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Represents binary image inputs that can be used as sources for media layers. Accepts either DOM-based images/canvas elements or raw ImageData.

ImageSource

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Represents image sources accepted by media layers, either a URL/string reference or binary image content.

VideoSource

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Represents video sources accepted by media layers, either a URL/string reference, an HTMLVideoElement, or null.