API (v2.0.0) - Giro3D
    Preparing search index...

    An image source powered by OpenLayers to load tiled images. Supports all subclasses of the OpenLayers TileSource.

    If the tiles of the source are in a format that is not supported directly by the browser, i.e not JPG/PNG/WebP, then you must pass a decoder with the format constructor option.

    To filter out no-data pixels, you may pass the noDataValue option in the constructor.

    // To create a source based on the Stamen OpenLayers source, with the 'toner' style.
    const source = new TiledImageSource({
    source: new Stamen({ layer: 'toner' })
    });

    // To create a WMS source that downloads TIFF images, eliminating all pixels that have the
    // value -9999 and replacing them with transparent pixels.
    const source = new TiledImageSource({
    source: new TileWMS({
    url: 'http://example.com/wms',
    params: {
    LAYERS: 'theLayer',
    FORMAT: 'image/tiff',
    },
    projection: 'EPSG:3946',
    crossOrigin: 'anonymous',
    version: '1.3.0',
    }),
    format: new GeoTIFFFormat(),
    noDataValue: -9999,
    });

    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.

    format: ImageFormat | undefined
    isImageSource: boolean = ...
    isMemoryUsage: true = ...

    Readonly flag to indicate that his object implements MemoryUsage.

    isTiledImageSource: true = ...
    noDataValue: number | undefined
    olprojection: Projection
    priority: RequestPriority = 'auto'
    source: UrlTile
    synchronous: boolean = false

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

    transparent: boolean
    type: "TiledImageSource" = ...

    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

      The adjusted parameters.

    • Gets whether this source contains the specified extent. If a custom contains function is provided, it will be used. Otherwise, intersects is used.

      This method is mainly used to discard non-relevant requests (i.e don't process regions that are not relevant to this source).

      Parameters

      • extent: Extent

        The extent to test.

      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.