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.
46 lines (45 loc) • 1.23 kB
TypeScript
import Overlay from "../Overlay";
import { T_Position } from "../../common/type";
declare class GroundPolygonPrimitive extends Overlay {
private _positions;
_minHeight: number;
_extrudedHeight: number;
/**
*
* @param positions 坐标串
* @param holes 空心坐标串
*/
constructor(positions: string | T_Position[]);
get type(): any;
set positions(positions: string | T_Position[]);
get positions(): string | T_Position[];
private getMinHeight;
private getMaxHeight;
set minHeight(height: number);
get minHeight(): number;
set extrudedHeight(height: number);
get extrudedHeight(): number;
/**
*
* @private
*/
private _setAppearance;
_mountedHook(): void;
/**
* 设置风格
* @param style
* @returns {WaterPrimitive}
* @example
* ```json
* // 样式参数(可选)
* {
* "color": Color.WHITE, // 颜色
* "speed": 10, // 速度
* "image": "/img.png", // 材质图片地址
* "repeat": {x:5,y:1}, // 重复规则
* }
* ```
*/
setStyle(style: any): this;
}
export default GroundPolygonPrimitive;