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

    类 PlaneEntity

    平面覆盖物(#plane):用 dimensions + normal 描述一个有朝向的矩形面。

    层级 (查看层级一览)

    索引

    构造函数

    • 构造函数

      参数

      • position: Position

        任意类型的坐标

      • width: number

        宽度

      • height: number

        高度

      • plane: { normal?: Cartesian3; distance?: number }

        平面参数

        • 可选normal?: Cartesian3

          normal - 平面法向量

        • 可选distance?: number

          distance - 平面和原点的距离

      返回 PlaneEntity

    属性

    graphicId: string

    地图覆盖物基础类

    id: string

    地图覆盖物基础类

    show: boolean

    地图覆盖物基础类

    attr: Record<string, unknown>

    地图覆盖物基础类

    allowDrillPicking: unknown

    地图覆盖物基础类

    graphicEvent: GraphicEvent

    地图覆盖物基础类

    graphic: Graphic

    地图覆盖物基础类

    state: string

    地图覆盖物基础类

    contextMenu: unknown

    地图覆盖物基础类

    type: string

    类型

    position: Position

    图形坐标

    width: number

    宽度设置

    height: number

    高度

    distance: number

    距离

    方法

    • 参数

      参数名称类型默认值描述信息
      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 - 当前实体对象

    • 设置样式

      参数

      参数名称类型默认值描述信息
      styleRecord—实体属性,请参考 Cesium.Entity 各自属性

      返回 Graphic

      • 返回自己,链式调用