import type { AnimationOptions, MediaElement, Georeference, HTMLImageContainer, ImageBinarySource } from "@arcgis/core/layers/media/types.js";Type definitions
AnimationOptions
- 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.
repeatType
- 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.
MediaElement
- Since
- ArcGIS Maps SDK for JavaScript 4.24
Image and video elements referenced in the MediaLayer.
- See also
- Type
- ImageElement | VideoElement
Georeference
- 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:
- CornersGeoreference: Uses the coordinates of the four corners of the media.
- ExtentAndRotationGeoreference: Uses an extent and a rotation angle.
- ControlPointsGeoreference: Uses a set of control points for more complex transformations.
HTMLImageContainer
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Represents HTML elements that can supply image content for media layers.
ImageBinarySource
- 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.
- Type
- HTMLImageContainer | ImageData
ImageSource
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Represents image sources accepted by media layers, either a URL/string reference or binary image content.
- Type
- string | ImageBinarySource
VideoSource
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Represents video sources accepted by media layers, either a URL/string reference, an HTMLVideoElement, or null.
- Type
- string | HTMLVideoElement | null | undefined