单体拾取工具初始化参数

interface SinglePickPluginOptions {
    viewer?: Viewer;
    layer?: YunJingLayer;
    inPointStyle: {
        color: string;
        radius: number;
        borderWidth: number;
        borderColor: string;
    };
    outPointStyle: {
        color: string;
        radius: number;
        borderWidth: number;
        borderColor: string;
    };
    polygonStyle: {
        color: string;
        borderWidth: number;
        borderColor: string;
    };
    model: {
        name: string;
        wasmPaths: string;
        encoderUrl: string;
        decoderUrl: string;
    };
}

Properties

viewer?: Viewer

Cesium 的 Viewer 实例

layer?: YunJingLayer

云境图层实例

inPointStyle: {
    color: string;
    radius: number;
    borderWidth: number;
    borderColor: string;
}

拾取到点时的样式

Type declaration

  • color: string

    颜色

  • radius: number

    半径大小

  • borderWidth: number

    边框宽度

  • borderColor: string

    边框颜色

outPointStyle: {
    color: string;
    radius: number;
    borderWidth: number;
    borderColor: string;
}

单体外的点的样式

Type declaration

  • color: string

    颜色

  • radius: number

    半径大小

  • borderWidth: number

    边框宽度

  • borderColor: string

    边框颜色

polygonStyle: {
    color: string;
    borderWidth: number;
    borderColor: string;
}

单体面Mask的样式

Type declaration

  • color: string

    颜色

  • borderWidth: number
  • borderColor: string
model: {
    name: string;
    wasmPaths: string;
    encoderUrl: string;
    decoderUrl: string;
}