xyj3d API 文档 - v1.0.0
    正在准备搜索索引...

    glTF / glb 模型覆盖物:支持 scale、minimumPixelSize 与自带动画。

    层级 (查看层级一览)

    索引

    构造函数

    • 构造函数

      参数

      参数名称类型默认值描述信息
      positionPosition—坐标,任意类型坐标
      modelUrlstring—坐标url

      返回 Model

    属性

    graphicId: string

    地图覆盖物基础类

    id: string

    地图覆盖物基础类

    show: boolean

    地图覆盖物基础类

    attr: Record<string, unknown>

    地图覆盖物基础类

    allowDrillPicking: unknown

    地图覆盖物基础类

    graphicEvent: GraphicEvent

    地图覆盖物基础类

    graphic: Graphic

    地图覆盖物基础类

    state: string

    地图覆盖物基础类

    contextMenu: unknown

    地图覆盖物基础类

    type: string

    图形类型

    position: Position

    设置位置

    modelUrl: string

    模型url

    rotateAmount: string

    模型url

    方法

    • 参数

      参数名称类型默认值描述信息
      typestring—

      返回 unknown

    • 参数

      参数名称类型默认值描述信息
      typestring—

      返回 unknown

    • 为实体设置文字标签,仅对 Cesium.Entity 类型的图形生效

      参数

      参数名称类型默认值描述信息
      textstring—文字内容
      textStyleRecord—文字样式,参考 Cesium.Label 属性

      返回 Graphic

      this - 当前实体对象

    • 把当前实体从所属图层移除

      返回 Graphic

      this - 当前实体对象

    • 将实体加入图层

      参数

      参数名称类型默认值描述信息
      layerxyj3d—图层

      返回 Graphic

      this - 当前实体对象

      Layer

    • 注册图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型
      callbackunknown—事件回调
      contextRecord—回调上下文

      返回 Graphic

      this - 当前实体对象

    • 取消图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型
      callbackunknown—事件回调
      contextRecord—回调上下文

      返回 Graphic

      this - 当前实体对象

    • 触发图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型
      paramsRecord—事件携带参数

      返回 Graphic

      this - 当前实体对象

    • 触发图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型

      返回 Graphic

      this - 当前实体对象

    • 触发图形事件

      参数

      参数名称类型默认值描述信息
      typestring—事件类型

      返回 Graphic

      this - 当前实体对象

    • Sets style

      参数

      参数名称类型默认值描述信息
      styleRecord—

      返回 Graphic

    • ParseCood from entity

      参数

      参数名称类型默认值描述信息
      entityEntity—
      modelUrlstring—

      返回 Model