import { default as VtLayerStyle } from './style/VtLayerStyle'; import { default as VtLineStyle } from './style/VtLineStyle'; import { default as VtAnnoStyle } from './style/VtAnnoStyle'; import { CesiumWidget } from '@cesium/engine'; /** * VTileLayer 矢量切片图层对象 */ declare class VTileLayer { /** * 名称 */ readonly name: string; ItemsList: any[]; /** * 构造函数 * @param name */ constructor(name: string); /** * 允许跨级别,存在,默认为false */ allowCrossLevel: boolean; /** * 当前级别 */ private _currentLevel; set CurrentLevel(value: number); /** * 字段 */ fields: { [name: string]: string; }; /** * 透明度 0-1 */ alpha: number; /** * 标注使用的属性字段名称,缺省为 "name" */ annoFieldName: string; /** * 空间类型 1 点, 2 线, 3 多边形 */ geoType: number; /** * 是否可见 */ isVisible: boolean; /** * 最大层级 */ maxLevel: number; /** * 最小层级 */ minLevel: number; /** * 图层的显示样式 */ style?: VtLineStyle | VtAnnoStyle; billboardCollection: any; primitiveCollection: any; /** * 自定义的标注避让时的占位优先级。数值大的先占位 * @param anno 标注值 * @param properties 对象属性 * @returns */ orderFunc?: (anno: string, properties: object) => number; /** * 自定义样式函数 * @param anno 标注值 * @param properties 对象属性值 * @returns 图层样式。如果返回null,则使用缺省样式 */ styleFunc?: (anno: string, properties: object) => VtLayerStyle; /** * 移除所有的 */ removeAll(viewer?: CesiumWidget): void; /** * 是否可见 * @param isVisible */ show(isVisible: boolean): void; } export default VTileLayer;