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.

56 lines (55 loc) 1.68 kB
import Overlay from "../Overlay"; import { T_Position } from "../../common/type"; /** * 墙 * @noInheritDoc * @example * ```ts * let wall = new BC.Wall('-90.0,32.0,1000;-94.0,36.0,1000;') * ``` */ declare class Wall extends Overlay { private _positions; /**坐标串 */ constructor(positions: string | T_Position[]); get type(): any; set positions(positions: string | T_Position[]); get positions(): string | T_Position[]; _mountedHook(): void; /** * * @param text * @param textStyle */ setLabel(text: string, textStyle: any): this; /** * 设置风格 * @param style * @returns {Wall} * @example * ```json * // 样式参数(可选) * { * "fill": true, //是否用提供的材料填充多边形。 * "material": BC.Color.WHITE, //材质 * "outline": false, //是否显示边框 * "outlineColor": BC.Color.BLACK, //边框颜色 * "outlineWidth": 0, //边框宽度 * "shadows": 0, //阴影类型,0:禁用、1:启用 、2:投射、3:接受 * "distanceDisplayCondition": { * "near": 0, //最近距离 * "far": Number.MAX_VALUE //最远距离 * }, //根据距离设置可见 * "classificationType": 2 //分类 是否影响地形,3D切片或同时影响这两者。0:地形、1:3D切片、2:两者 * } * ``` */ setStyle(style: any): this; /** * Entity 转换为 Overlay * @param entity * @returns {Wall} */ static fromEntity(entity: Cesium.Entity): Wall | undefined; } export default Wall;