UNPKG

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.

48 lines (47 loc) 994 B
import Layer from "../Layer"; /** * Kml 图层,用于加载 Kml 数据 * @noInheritDoc * @example * ```ts * let layer = new BC.KmlLayer('id', '**\/**.kml') * layer.eachOverlay((item) => { * if (item.polyline) { * //todo * } * if (item.polygon) { * //todo * } * if (item.billboard) { * //todo * } * }) * ``` */ declare class KmlLayer extends Layer { /** * @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 */ eachOverlay(method: any, context: any): this; clear(): void; setStyle(style: any): void; } export default KmlLayer;