From 5ab4a3b92564a1ad4c6faf0bdcf8cc3f2958261b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Tue, 26 Aug 2025 21:58:11 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/BatchModel/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Obj/Base/BatchModel/index.js b/src/Obj/Base/BatchModel/index.js index 5cec8a2..ab81596 100644 --- a/src/Obj/Base/BatchModel/index.js +++ b/src/Obj/Base/BatchModel/index.js @@ -74,7 +74,7 @@ class BatchModel extends Base { Draw && Draw.start((a, positions) => { this.options.positions = positions; //判断范围是否过大 - if (positions) { + if (positions.length != 0 || positions.lng) { if (options.type == '面') { let posi = positions.map(v => { return Cesium.Cartesian3.fromDegrees(v.lng, v.lat) From 986658898600561d51b8bd92ce2f5ebfed482cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Tue, 26 Aug 2025 22:04:26 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/BatchModel/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Obj/Base/BatchModel/index.js b/src/Obj/Base/BatchModel/index.js index ab81596..2437ff1 100644 --- a/src/Obj/Base/BatchModel/index.js +++ b/src/Obj/Base/BatchModel/index.js @@ -46,7 +46,7 @@ class BatchModel extends Base { this._EventBinding = new EventBinding() this._elms = {}; this.pointArr = [] - this.sdk.addIncetance(this.options.id, this) + // this.sdk.addIncetance(this.options.id, this) let tools = new Tools(sdk) // BatchModel.computeDis(this) // if (this.options.positions.length > 0 || this.options.positions.lng) { From 8f41d5907a36de22062fa77bcfb8c156d19b7df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Wed, 27 Aug 2025 00:54:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/BatchModel/index.js | 2 ++ src/YJEarth/index.js | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Obj/Base/BatchModel/index.js b/src/Obj/Base/BatchModel/index.js index 2437ff1..438ab21 100644 --- a/src/Obj/Base/BatchModel/index.js +++ b/src/Obj/Base/BatchModel/index.js @@ -58,6 +58,7 @@ class BatchModel extends Base { // BatchModel.computeDis(this) let Draw + console.log('kkkkk') switch (options.type) { case '点': Draw = new DrawPoint(this.sdk) @@ -73,6 +74,7 @@ class BatchModel extends Base { } Draw && Draw.start((a, positions) => { this.options.positions = positions; + console.log('uuuuuu') //判断范围是否过大 if (positions.length != 0 || positions.lng) { if (options.type == '面') { diff --git a/src/YJEarth/index.js b/src/YJEarth/index.js index 6e61cf1..16810c9 100644 --- a/src/YJEarth/index.js +++ b/src/YJEarth/index.js @@ -441,7 +441,6 @@ class YJEarth { textList[i].querySelector('textarea').focus() _this.isLeftClick = true _this.entityMap.get(_this.clickTextDom.id).isClick(movement.position, _this.clickTextDom.id) - _this.blurFun = () => { // let { sdkP } = getSdk() // if (_this == sdkP && sdkP) {//二维 @@ -449,7 +448,6 @@ class YJEarth { // } else if (!sdkP) { _this.entityMap.get(_this.clickTextDom.id).getwords(_this.clickTextDom.getElementsByTagName('textarea')[0].value) // } - _this.clickTextDom.querySelector('textarea').removeEventListener('blur', _this.blurFun) } _this.clickTextDom.querySelector('textarea').addEventListener('blur', _this.blurFun) @@ -474,7 +472,7 @@ class YJEarth { click = true } mousemove = function (e) { - if (!click) { + if (!click || !_this.clickTextDom) { return } let width = _this.clickTextDom.clientWidth * 1