EarthSDK
    正在准备搜索索引...

    层级 (查看层级一览)

    索引

    构造函数

    属性

    avoidanceManager: AvoidanceManager
    billboardCollection: ScreenObjectPool<Billboard>
    canvasCollection: CustomCollection = ...
    collectionMap: Record<"label" | "rectangle" | "billboard", any>

    集合映射,方便统一处理

    czmViewer: ESCesiumViewer
    labelCollection: ScreenObjectPool<Label>
    layers: Map<string, ScreenLayer> = ...
    rectangleCollection: CustomCollection = ...
    viewer: Viewer
    _lastMemId: number = -1

    访问器

    • get disposers(): (() => void)[]

      返回 (() => void)[]

    • get memId(): number

      返回 number

    • get refreshEvent(): Event<[]>

      返回 Event<[]>

    • get toDestroyEvent(): Listener

      返回 Listener

    方法

    • 参数

      • disposeFunc: () => void

      返回 () => void

    • 类型参数

      • T extends { destroy(): void }

      参数

      • obj: T

      返回 T

    • 参数

      返回 { id: string; layer: string; screenObjectId: string }

    • 参数

      返回 { id: string; layer: string; screenObjectId: string }

    • 参数

      • id: string
      • layer: string
      • style: { [xx: string]: any }
      • objectInfo: ESJScreenObjectInfo
      • callback: Function

      返回 { id: string; layer: string; screenObjectId: string }

    • 参数

      • disposeFunc: () => void

      返回 () => void

    • 类型参数

      • T extends { destroy(): void }

      参数

      • obj: T

      返回 T

    • 参数

      • disposeFunc: () => void

      返回 () => void

    • 返回 undefined

    • 请不要重写destroy,请使用destroyImp来重写!

      返回 undefined

    • 返回 void

    • 参数

      • disposeFunc: () => void

      返回 () => void

    • 类型参数

      • T extends { destroy(): void }

      参数

      • obj: T

      返回 T

    • 类型参数

      • T extends { destroy(): void }

      参数

      • obj: T

      返回 T

    • 参数

      • layerName: string

      返回 ScreenLayer

    • 返回 boolean

    • 返回 boolean

    • 返回 void

    • 参数

      • layer: string
      • id: string
      • removeInfo:
            | string
            | Set<string>
            | Partial<
                Record<"label" | "rectangle" | "billboard", string | Set<string>>,
            >
      • forceRemove: boolean = false

      返回 void

    • 参数

      返回 void

    • 类型参数

      • T extends { tryDestroy(): void }

      参数

      • obj: T

      返回 T

    • 返回 undefined

    • 类型参数

      • T extends { tryDestroy(): void }

      参数

      • obj: T

      返回 T

    • 参数

      • layer: string
      • id: string
      • screenObjectIds: string | Set<string>
      • style: Partial<
            Record<
                "label"
                | "rectangle"
                | "all"
                | "billboard",

                    | Record<string, any>
                    | Partial<
                        {
                            backgroundColor: Color;
                            backgroundPadding: Cartesian2;
                            disableDepthTestDistance: number;
                            distanceDisplayCondition: DistanceDisplayCondition;
                            eyeOffset: Cartesian3;
                            fillColor: Color;
                            font: string;
                            heightReference: HeightReference;
                            horizontalOrigin: HorizontalOrigin;
                            id: any;
                            outlineColor: Color;
                            outlineWidth: number;
                            pixelOffset: Cartesian2;
                            pixelOffsetScaleByDistance: NearFarScalar;
                            position: Cartesian3;
                            scale: number;
                            scaleByDistance: NearFarScalar;
                            show: boolean;
                            showBackground: boolean;
                            style: LabelStyle;
                            text: string;
                            translucencyByDistance: NearFarScalar;
                            verticalOrigin: VerticalOrigin;
                        },
                    >
                    | Partial<
                        {
                            alignedAxis: Cartesian3;
                            color: Color;
                            disableDepthTestDistance: number;
                            distanceDisplayCondition: DistanceDisplayCondition;
                            eyeOffset: Cartesian3;
                            height: number;
                            heightReference: HeightReference;
                            horizontalOrigin: HorizontalOrigin;
                            id: any;
                            image: string
                            | HTMLCanvasElement;
                            imageSubRegion: BoundingRectangle;
                            pixelOffset: Cartesian2;
                            pixelOffsetScaleByDistance: NearFarScalar;
                            position: Cartesian3;
                            rotation: number;
                            scale: number;
                            scaleByDistance: NearFarScalar;
                            show: boolean;
                            sizeInMeters: boolean;
                            splitDirection: SplitDirection;
                            translucencyByDistance: NearFarScalar;
                            verticalOrigin: VerticalOrigin;
                            width: number;
                        },
                    >,
            >,
        >

      返回 boolean