An image source that aggregates several sub-sources. The extent of this source is the union of the extent of all sub-sources.

Overlapping sources are stacked vertically with the sources toward the end of the array being drawn on top of sources at the beginning of the array.

Constraints:

  • all sub-sources must have the same CRS.
  • all sub-sources must have the same color space
  • all sub-sources must have the same flip-Y parameter
  • all sub-sources must produce textures that have the same datatype (e.g either 8-bit or 32-bit textures, but not both)

Hierarchy (view full)

Constructors

Properties

containsFn: undefined | CustomContainsFn
datatype: TextureDataType

Gets the datatype of images generated by this source.

flipY: boolean

Gets whether images generated from this source should be flipped vertically.

isAggregateImageSource: true = ...
isImageSource: boolean = ...
isMemoryUsage: true = ...

Readonly flag to indicate that his object implements MemoryUsage.

priority: RequestPriority = 'auto'
synchronous: boolean = false

If true, this source can immediately generate images without any delay.

transparent: boolean
type: "AggregateImageSource" = ...

Accessors

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends "updated"

    Parameters

    Returns void

  • Returns an adjusted extent, width and height so that request pixels are aligned with source pixels, and requests do not oversample the source.

    Parameters

    • requestExtent: Extent

      The request extent.

    • requestWidth: number

      The width, in pixels, of the request extent.

    • requestHeight: number

      The height, in pixels, of the request extent.

    • margin: number = 0

      The margin, in pixels, around the initial extent.

    Returns null | GridExtent

    The adjusted parameters.

  • Fire an event type.

    Type Parameters

    • T extends "updated"

    Parameters

    Returns void

  • Checks if listener is added to an event type.

    Type Parameters

    • T extends "updated"

    Parameters

    Returns boolean

  • Test the intersection between the specified extent and this source's extent. This method may be overriden to perform special logic.

    Parameters

    • extent: Extent

      The extent to test.

    Returns boolean

    true if the extent and this source extent intersects, false otherwise.

  • Sets the visibility of a sub-source. This will trigger a repaint of the source.

    Parameters

    Returns void

    if the sub-source is not present in this source.