@three-tile/lib
    Preparing search index...

    Interface ISource

    Source interface all source implements ISource get url from x/y/z coordinate to url

    interface ISource {
        _projectionBounds: [number, number, number, number];
        attribution: string;
        bounds?: [number, number, number, number];
        dataType: string;
        isTMS?: boolean;
        maxLevel: number;
        minLevel: number;
        opacity: number;
        projectionID: ProjectionType;
        transparent: boolean;
        url: string;
        getUrl(
            x: number,
            y: number,
            z: number,
            obj?: { [name: string]: any },
        ): string | undefined;
        [key: string]: unknown;
    }

    Implemented by

    Indexable

    • [key: string]: unknown

      Any data

    Index

    Properties

    _projectionBounds: [number, number, number, number]

    Data bounds in Proejction, internal use

    attribution: string

    Source attribution info, it allows you to display attribution

    bounds?: [number, number, number, number]
    dataType: string

    A string identifies the source data type, it requires the support of the loader.

    isTMS?: boolean

    is TMS scheme

    maxLevel: number

    Data min level

    minLevel: number

    Data max level

    opacity: number

    Material opacity

    projectionID: ProjectionType

    Data projection

    transparent: boolean

    Material transparent

    url: string

    Tile service url template

    Methods

    • Get url from xyz, internal use

      Parameters

      • x: number
      • y: number
      • z: number
      • Optionalobj: { [name: string]: any }

      Returns string | undefined