API (v3.0.0-dev) - Giro3D
    Preparing search index...

    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 Summary)

    Index

    Constructors

    Properties

    containsFn: CustomContainsFn | undefined
    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

    • get colorSpace(): ColorSpace

      Gets the color space of the textures generated by this source.

      Returns ColorSpace

    Methods

    • 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 GridExtent | null

      The adjusted parameters.

    • Returns true if the extent intersects with any sub-source's extent.

      Parameters

      Returns boolean

    • Disposes all sub-sources.

      Returns void

    • Returns the union of the extent of all the sub-sources, if possible. If at least one source does not have a known extent, then the entire aggregate extent is undefined.

      Returns Extent | null

    • Initializes the source.

      Parameters

      Returns Promise<void>

      A promise that resolves when the source is initialized.

    • 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

      • source: ImageSource

        The source to update.

      • visible: boolean

        The new visibility.

      Returns void

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

    • Raises an event to reload the source.

      Parameters

      Returns void