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

    Class ZKXTSource

    中科星图影像数据源

    支持的瓦片服务地址:

    Hierarchy

    • TileSource
      • ZKXTSource

    Indexable

    • [key: string]: unknown

      扩展属性

    Index

    Constructors

    Properties

    _projectionBounds: BoundsType

    投影后的数据范围

    attribution: "GEOVIS © GEOVIS [GS(2022)3995号]"

    版权声明:GEOVIS © GEOVIS [GS(2022)3995号]

    bounds?: BoundsType

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

    dataType: string

    数据类型,默认为 "image"

    format: string = "webp"

    图片格式,默认 webp

    isTMS: boolean

    是否使用 TMS 坐标系,默认为 false(使用 XYZ)

    maxLevel: number

    最大缩放级别,默认为 18

    minLevel: number

    最小缩放级别,默认为 0

    opacity: number

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

    projectionID: ProjectionType

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

    style: Style = "img"

    瓦片样式,默认 img(影像图)

    subdomains: string = "1"

    子域名列表

    token: string = ""

    中科星图 API 访问令牌

    transparent: boolean

    材质是否透明,默认为 true

    url: string = "https://tiles{s}.geovisearth.com/base/v1/{style}/{z}/{x}/{y}?format={format}&tmsIds=w&token={token}"

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

    Methods

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

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

      Parameters

      • x: number

        瓦片 x 坐标

      • y: number

        瓦片 y 坐标

      • z: number

        瓦片 z 坐标

      Returns string

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

    • 根据瓦片坐标获取 URL 可重写此方法自定义 URL 生成逻辑

      Parameters

      • x: number

        瓦片 x 坐标

      • y: number

        瓦片 y 坐标

      • z: number

        瓦片 z 坐标

      • Optionalobj: Record<string, unknown>

        额外参数,会合并到模板替换数据中

      Returns string | undefined

      瓦片 URL

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

      Parameters

      • options: SourceOptions

        数据源配置项

      • Optionalextra: Record<string, unknown>

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

      Returns TileSource

      数据源实例