|  |  |  | @ -15,7 +15,6 @@ import { | 
		
	
		
			
				|  |  |  |  |   CallbackProperty, | 
		
	
		
			
				|  |  |  |  |   PolylineDashMaterialProperty, | 
		
	
		
			
				|  |  |  |  |   Cartesian2, | 
		
	
		
			
				|  |  |  |  |   HeightReference, | 
		
	
		
			
				|  |  |  |  | } from 'cesium' | 
		
	
		
			
				|  |  |  |  | import { | 
		
	
		
			
				|  |  |  |  |   cartesian2ToCartesian3, | 
		
	
	
		
			
				
					|  |  |  | @ -29,6 +28,7 @@ import { getDistance } from '@/utils/map/geocomputation.ts' | 
		
	
		
			
				|  |  |  |  | import { Angle } from '@/utils/map/angle.ts' | 
		
	
		
			
				|  |  |  |  | import { TextLabel } from '@/utils/map/geometry/textLabel.ts' | 
		
	
		
			
				|  |  |  |  | import { EntityOptions } from '@/types/entityoptions.ts' | 
		
	
		
			
				|  |  |  |  | import {profileAnalyse} from "@/utils/map/SpatialAnalysis.ts"; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | export default class CreatePolyline { | 
		
	
		
			
				|  |  |  |  |   viewer: Viewer | 
		
	
	
		
			
				
					|  |  |  | @ -44,6 +44,7 @@ export default class CreatePolyline { | 
		
	
		
			
				|  |  |  |  |   positions: Cartesian3[] = [] | 
		
	
		
			
				|  |  |  |  |   bMove: boolean = false | 
		
	
		
			
				|  |  |  |  |   bMeasure: boolean | undefined = false   //是否处于测距模式
 | 
		
	
		
			
				|  |  |  |  |   bProfile: boolean | undefined = false   //是否处于测距模式
 | 
		
	
		
			
				|  |  |  |  |   totalDistance: number = 0 | 
		
	
		
			
				|  |  |  |  |   bLongClick: boolean = false | 
		
	
		
			
				|  |  |  |  |   clickTimeout: any | 
		
	
	
		
			
				
					|  |  |  | @ -127,9 +128,7 @@ export default class CreatePolyline { | 
		
	
		
			
				|  |  |  |  |       const n = this.positions.length - 1 | 
		
	
		
			
				|  |  |  |  |       const ptArr = [oldPosition, cartesian3] | 
		
	
		
			
				|  |  |  |  |       this.vDashLinePosition[n] = ptArr | 
		
	
		
			
				|  |  |  |  |       this.viewer.entities.add( | 
		
	
		
			
				|  |  |  |  |         this.createTrackingLine(this.vDashLinePosition[n], Color.WHITE), | 
		
	
		
			
				|  |  |  |  |       ) | 
		
	
		
			
				|  |  |  |  |       this.viewer.entities.add(this.createTrackingLine(this.vDashLinePosition[n], Color.WHITE)) | 
		
	
		
			
				|  |  |  |  |       //添加地表控制点
 | 
		
	
		
			
				|  |  |  |  |       const groundControlPoint = new PointEntity(this.vDashLinePosition[n][0]) | 
		
	
		
			
				|  |  |  |  |       this.viewer.entities.add(groundControlPoint) | 
		
	
	
		
			
				
					|  |  |  | @ -233,7 +232,7 @@ export default class CreatePolyline { | 
		
	
		
			
				|  |  |  |  |     ) | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  |   //创建追踪线
 | 
		
	
		
			
				|  |  |  |  |   createTrackingLine(positions: Cartesian3[]) { | 
		
	
		
			
				|  |  |  |  |   createTrackingLine(positions: Cartesian3[],color: Color=Color.GREEN) { | 
		
	
		
			
				|  |  |  |  |     return new Entity({ | 
		
	
		
			
				|  |  |  |  |       polyline: { | 
		
	
		
			
				|  |  |  |  |         positions: new CallbackProperty(() => { | 
		
	
	
		
			
				
					|  |  |  | 
 |