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

    Class TXSource

    腾讯地图影像数据源

    Hierarchy

    • TileSource
      • TXSource

    Indexable

    • [key: string]: unknown

      扩展属性

    Index

    Constructors

    Properties

    _projectionBounds: BoundsType

    投影后的数据范围

    attribution: string = "Tencent Map © Tencent [GS(2024)4454号]"

    版权声明:Tencent Map © Tencent [GS(2024)4454号]

    bounds?: BoundsType

    数据范围 [最小经度, 最小纬度, 最大经度, 最大纬度]

    dataType: string

    数据类型,默认为 "image"

    isTMS: boolean = true

    使用 TMS 瓦片坐标系

    maxLevel: number = 18

    最大缩放级别

    minLevel: number

    最小缩放级别,默认为 0

    opacity: number

    材质透明度,默认为 1.0(不透明)

    projectionID: ProjectionType

    投影类型,默认为 "3857" 墨卡托投影

    style: Style = "sateTiles"

    瓦片样式

    subdomains: string = "0"

    子域名列表

    transparent: boolean

    材质是否透明,默认为 true

    url: string = "https://p{s}.map.gtimg.com/{style}/{z}/{sx}/{sy}/{x}_{y}.jpg"

    瓦片服务地址,支持 {s}/{style}/{z}/{sx}/{sy}/{x}/{y} 模板变量

    Methods

    • 根据投影类型计算瓦片的边界框

      • EPSG:3857 返回 Web Mercator 米单位
      • EPSG:4326 返回经纬度

      Parameters

      • x: number

        瓦片 x 坐标

      • y: number

        瓦片 y 坐标

      • z: number

        瓦片 z 坐标

      Returns string

      边界框字符串 "minX,minY,maxX,maxY"

    • 腾讯瓦片使用特有的目录结构:z/sx/sy/x_y.jpg 其中 sx = floor(x / 16),sy = floor((2^z - y) / 16)

      Parameters

      • x: number
      • y: number
      • z: number

      Returns string | undefined

    • 工厂方法:创建数据源实例

      Parameters

      • options: SourceOptions

        数据源配置项

      • Optionalextra: Record<string, unknown>

        附加属性,会合并到 options 中(同名覆盖 options)

      Returns TileSource

      数据源实例