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.

45 lines (44 loc) 1.06 kB
import Overlay from "../Overlay"; import { T_Position } from "../../common/type"; /** * 轨迹线图元 * @noInheritDoc * @example * ```ts * let trailLinePrimitive = new BC.TrailLinePrimitive('120,20;120,30;122,30') * ``` */ declare class TrailLinePrimitive extends Overlay { private _positions; private _width; /** * * @param positions 坐标串 * @param width 宽度 */ constructor(positions: string | T_Position[], width?: number); get type(): any; set positions(positions: string | T_Position[]); get positions(): string | T_Position[]; /** * * @private */ private _setAppearance; _mountedHook(): void; /** * 设置风格 * @param style * @returns {TrailLinePrimitive} * @example * ```json * // 样式参数(可选) * { * "speed": 5, //速度 * "color": BC.Color.WHITE //颜色 * } * ``` */ setStyle(style?: any): this; } export default TrailLinePrimitive;