From 6f475ec20efbbb91d5d3d012284eeaa5b0a0bab0 Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Fri, 27 Mar 2026 05:55:15 +0000
Subject: [PATCH] 使用50版本

---
 src/example/ExampleFlyPage.js |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/example/ExampleFlyPage.js b/src/example/ExampleFlyPage.js
index c9d728f..bdfc183 100644
--- a/src/example/ExampleFlyPage.js
+++ b/src/example/ExampleFlyPage.js
@@ -1,10 +1,9 @@
 import React, {Component} from 'react'
 import './ExampleDrawPage.css'
-import {GIS} from "iclient3d-plot-diy";
+import {GIS, Bp} from "iclient3d-plot-diy";
 import {interval, take} from "rxjs";
-import {Bp} from "iclient3d-plot-diy";
 
-const {Cesium} = window;
+const Cesium = window['Cesium'];
 
 export default class ExampleFlyPage extends Component {
 
@@ -69,7 +68,7 @@
             return {
                 lon: Cesium.Math.toDegrees(car.longitude),
                 lat: Cesium.Math.toDegrees(car.latitude),
-                height: car.height
+                height: 5000
             };
         });
 
@@ -78,19 +77,24 @@
             "code": "ccccc",
             "bzlx": "simple",
             "jbwb": "R:00017",
+            "xbwb": "R:00017312312\n123123",
             "type": "2010",
             "useModify": false,
             "lon": arr[0].lon,
             "lat": arr[0].lat,
-            "height": arr[0].height || 0,
+            clampToGround: false,
+            xz: true,
+            "height": arr[0].height,
             points: []
         }
         this.mapFunction.mapApiService.showDrawDatas([option]);
 
         interval(300).pipe(take(120)).subscribe(number => {
             this.mapFunction.mapApiService.updateDraw("ccccc", {
+                clampToGround: false,
                 lon: arr[number].lon,
                 lat: arr[number].lat,
+                height: arr[number].height,
                 points: arr.slice(0, number)
             });
         });

--
Gitblit v1.9.3