Constructor options for URLTileSetModelConstructorOptions.

interface URLTileSetModelConstructorOptions {
    baseURL: string;
    credentials?: boolean;
    dataType?: RasterDataType;
    isSparseTileSet?: boolean;
    requestHeaders?: null | HttpRequestHeaders;
    requestParameters?: null | HttpRequestParameters;
    samplingMode?: RasterSamplingMode;
    structure: QuadTreeRasterTileSetStructure | TileMatrixSet2DRasterTileSetStructure;
    subdomains?: string[];
}

Hierarchy (view full)

Properties

baseURL: string

The base URL for this tileset. See UrlTileSetModel.getTileURL for details on how this value is used.

credentials?: boolean

Whether credentials should be included with every HTTP request.

dataType?: RasterDataType

Configures the model's RasterDataType.

The ELEVATION raster data type will only have an effect in a 3D map, and acts as a way of representing 3D terrain visually. The ELEVATION dataType will not be visualized as a colorized heightmap as it only affects the 3D height values of the surface of the earth.

The default is IMAGE.

2024.0

isSparseTileSet?: boolean

By default, LuciadRIA assumes that all tiles in a tile tree exist. If a missing tile is encountered, LuciadRIA assumes it has reached the bottom of the tile tree and will no longer attempt to load child tiles of the missing tile in the tree.

Consequently, if tiles are missing in the tile tree (which we refer to as a sparse tile set), the image data below the missing tile in the tile tree will not refine. To solve this issue, you can configure the isSparseTileSet flag to true. LuciadRIA will then always attempt to load child tiles, even if a parent is missing. The downside is that tile requests will be always be attempted even when the bottom of the tree has effectively been reached. Note that LuciadRIA will never request tiles outside beyond the RasterTileSet's levelCount.

The default is false.

2024.0.02

requestHeaders?: null | HttpRequestHeaders

An object literal that represents headers (as a key-value map) to send with each HTTP request. If set (and not empty), an XHR with the specified headers will be performed instead of creating an Image.

requestParameters?: null | HttpRequestParameters

An object literal that represents URL parameters (as a key-value map) to send with each HTTP request. If set (and not empty), an XHR with the specified query parameters will be performed instead of creating an Image.

2021.0

samplingMode?: RasterSamplingMode

Configures the model's RasterSamplingMode, corresponding to the setting representation of the underlying raster data.

For AREA. For POINT.

For elevation, samplingMode POINT is recommended for performance and accuracy.

2024.0

The structure description for the raster tile set.

2023.0

subdomains?: string[]

When specified, UrlTileSetModel.getTileURL will replace the {s} pattern in baseURL with values from subdomains. This will cause tile requests to be spread across different subdomains. Browsers limit the amount of connections to a single domain. Using subdomains avoids hitting this limit. By default, it's empty.