The data for a tile can be either an ArrayBuffer or an Image.
It is mandatory to set this property to a valid value.
OptionalheightDefines 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.
OptionalmimeDefines 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.
OptionalpixelDefines 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.
OptionalwidthDefines 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.
A
TileDatajavascript 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:
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.
Imageobject.ArrayBuffercontaining the bytes of the compressed image.ArrayBufferof which the bytes match the pixel format.