Interface PolygonItemData

interface PolygonItemData {
    borderColor?: ColorRepresentation;
    color?: ColorRepresentation | ColorRepresentation[];
    coordinates: [number, number, number][] | [number, number, number][][];
    disableEdit?: boolean;
    hidden?: boolean;
    id?: string;
    opacity?: number;
    showVertex?: boolean;
    [key: string]: any;
}

Indexable

[key: string]: any

自定义数据

Properties

borderColor?: ColorRepresentation

颜色

color?: ColorRepresentation | ColorRepresentation[]

颜色

coordinates: [number, number, number][] | [number, number, number][][]

坐标

disableEdit?: boolean

是否禁止编辑

hidden?: boolean

是否隐藏

id?: string

id

opacity?: number

透明度(0-1)

showVertex?: boolean

是否显示顶点