interface VectorTileSourceOptions {
    backgroundColor?: string;
    colorSpace?: ColorSpace;
    containsFn?: CustomContainsFn;
    flipY?: boolean;
    format?: FeatureFormat;
    is8bit?: boolean;
    style: Style | StyleFunction;
    url: string;
}

Hierarchy (view full)

Properties

backgroundColor?: string

The background color of the tiles.

colorSpace?: ColorSpace

The custom color space of the generated textures. See https://threejs.org/docs/#manual/en/introduction/Color-management for more information. If unspecified, the source considers that 8-bit images are in the sRGB color space, otherwise NoColorSpace.

containsFn?: CustomContainsFn

The custom function to test if a given extent is contained in this source. Note: we assume this function accepts extents in this source's CRS.

flipY?: boolean

Should images be flipped vertically during composition ?

format?: FeatureFormat

The format of the vector tile. Default is MVT.

is8bit?: boolean

The data type of images generated. For regular color images, this should be true. For images with a high dynamic range, or images that requires additional processing, this should be false.

style: Style | StyleFunction

The style or style function.

url: string

The URL to the vector tile layer.