本专题没有废话,只有代码,撸!
标绘主类MilitaryPlotting.ts
/*
* 态势标绘主类
* @Author: Wang jianLei
* @Date: 2023-01-13 14:47:20
* @Last Modified by: jianlei wang
* @Last Modified time: 2023-05-31 09:55:34
*/
import * as Creator from './create/index';
import CreateRemindertip from './thirdPart/ReminderTip';
import ObjectEdit from './edit/index';
import { exportDatas, loadConfigJson } from './export/index';
const Cesium = window.Cesium;
interface PlotObject {
[key: string]: any[];
}
class MilitaryPlotting {
viewer: any; //三维场景
resultObject: PlotObject; //标绘结果
handler: any;
edit: ObjectEdit;
constructor(viewer: any) {
if (!viewer) throw new Error('no viewer object!');
this.viewer = viewer;
this.res