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.
65 lines (64 loc) • 1.22 kB
TypeScript
import Plot from "../Plot";
declare class Draw {
_style: any;
_viewer: any;
_layer: Cesium.CustomDataSource;
_delegate: any;
_options: any;
_positions: any[];
constructor(style?: any);
get drawTool(): any;
/**
* The hook for mount viewer
* Subclasses need to be overridden
* @private
*/
_mountedHook(): void;
/**
* The hook for mount stop
* Subclasses need to be overridden
* @private
*/
_stopdHook(): void;
/**
*
* @param position
* @private
*/
_onDrawAnchor(position: any): void;
_onPopAnchor(): void;
/**
*
* @param position
* @private
*/
_onAnchorMoving(position: any): void;
/**
* 双击绘制结束
* @private
*/
_onDrawStop(): void;
/**
*
* @private
*/
_bindEvent(): void;
/**
*
* @private
*/
_unbindEvent(): void;
/**
*
* @param plot
* @param options
* @returns {Draw}
*/
start(plot: Plot, options: any): this;
/**
*
* @returns {Draw}
*/
stop(): this;
}
export default Draw;