bcgis-type
Version:
The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.
56 lines (55 loc) • 1.22 kB
TypeScript
import Layer from "../Layer";
/**
* Czml 图层,用于加载 Czml 数据
* @noInheritDoc
* @example
* ```js
* let layer = new BC.CzmlLayer('id', '**\/**.czml')
* layer.eachOverlay((item) => {
* if (item.polyline) {
* //todo
* }
* if (item.polygon) {
* //todo
* }
* if (item.billboard) {
* //todo
* }
* })
* ```
*/
declare class CzmlLayer extends Layer {
protected _delegate: Promise<Cesium.CzmlDataSource>;
/**
* @param id 图层唯一标识
* @param url 数据地址
* @param options 属性配置
*/
constructor(id: string, url?: string, options?: {});
/**
* 类型
*/
get type(): string;
/**
* 是否显示
*/
set show(show: boolean);
get show(): boolean;
/**
* 遍历覆盖物
* @param method 回调方法
* @param context
* @returns {CzmlLayer}
*/
eachOverlay(method: {
(item: {
attr: {
[x: string]: any;
};
}): void;
call?: any;
}, context: this): this;
setStyle(style: any): void;
clear(): void;
}
export default CzmlLayer;