LuciadRIA (2026.0.07)
    Preparing search index...

    A TileData javascript object literal contains the data of an imagery tile and has the necessary metadata properties to process the data.

    Tile data can be one of the following options:

    • HTML5 Image
    • Compressed image (e.g. png)
    • Raw uncompressed image

    Depending on the type of data, the properties on this object literal are mandatory or ignored. The following table gives an overview of which properties are mandatory in each case.

    Use case data mimeType pixelFormat width/height
    HTML5 Image Must be an Image object. Not Allowed Not Allowed Not Allowed
    Compressed image Must be an ArrayBuffer containing the bytes of the compressed image. Mandatory Not Allowed Not Allowed
    Raw uncompressed image Must be an ArrayBuffer of which the bytes match the pixel format. Not Allowed Mandatory Mandatory

    Examples:

    var html5ImageTileData = {
    data: Image
    }
    var pngTileData = {
    data: arrayBuffer,
    mimeType: "image/png"
    }
    var rgbaTileData = {
    data: arrayBuffer,
    pixelFormat: PixelFormat.RGB_888,
    width: 256,
    height:256
    }
    interface TileData {
        data: HTMLImageElement | ArrayBuffer;
        height?: number;
        mimeType?: string;
        pixelFormat?: PixelFormat;
        width?: number;
    }

    Properties

    The data for a tile can be either an ArrayBuffer or an Image. It is mandatory to set this property to a valid value.

    height?: number

    Defines the height of the tile data in pixels. Must be set when data is an ArrayBuffer containing raw pixel values. In other cases this property is ignored.

    mimeType?: string

    Defines the mime type for the data set luciad.model.tileset.TileData#data. Must be set when data is an ArrayBuffer containing an encoded image. It may not be set when the ArrayBuffer contains uncompressed raw bit values.

    pixelFormat?: PixelFormat

    Defines the pixel format of a raw image. This property must be set when data is an ArrayBuffer containing raw pixel values. In other cases this property is ignored.

    width?: number

    Defines the width of the tile data in pixels. Must be set when data is an ArrayBuffer containing raw pixel values. In other cases this property is ignored.