From c4de1a95624e2f3d257a9777b60028196a3b08fe Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Tue, 09 Dec 2025 02:59:35 +0000
Subject: [PATCH] * 1.0.33 ``` 1、修复双色线异常 2、修复重复加载svg文件的问题,同步解决大量军标点的性能问题。 3、修复2d下比例尺设置的问题 4、修复DrawEnd事件在重启修改时,无法触发的问题。 5、修复2d下触发材料问题 ```

---
 src/example/ExampleFlyPage.js |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/example/ExampleFlyPage.js b/src/example/ExampleFlyPage.js
index 4d3e2b7..640bdc5 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 {
 
@@ -17,7 +16,7 @@
 
     componentDidMount() {
 
-        fetch('./example/ExampleBpPage.md')
+        fetch('./example/ExampleFlyPage.md')
             .then(response => response.text())
             .then(mdText => {
                 this.setState({htmlString: window.marked.parse(mdText)});
@@ -69,7 +68,7 @@
             return {
                 lon: Cesium.Math.toDegrees(car.longitude),
                 lat: Cesium.Math.toDegrees(car.latitude),
-                height: car.height
+                height: 5000
             };
         });
 
@@ -82,7 +81,8 @@
             "useModify": false,
             "lon": arr[0].lon,
             "lat": arr[0].lat,
-            "height": arr[0].height || 0,
+            xz: true,
+            "height": arr[0].height,
             points: []
         }
         this.mapFunction.mapApiService.showDrawDatas([option]);
@@ -91,6 +91,7 @@
             this.mapFunction.mapApiService.updateDraw("ccccc", {
                 lon: arr[number].lon,
                 lat: arr[number].lat,
+                height: arr[number].height,
                 points: arr.slice(0, number)
             });
         });

--
Gitblit v1.9.3