From 20a938857909a66dd3976d19ea8d9bc44aca23be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Fri, 8 Aug 2025 15:31:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BA=BF=E7=BB=98?= =?UTF-8?q?=E5=88=B6=20=E6=B5=81=E5=8A=A8=E7=AE=AD=E5=A4=B4=EF=BC=8C?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=EF=BC=8C=E7=84=B6=E5=90=8E=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E7=BC=96=E8=BE=91=EF=BC=8C=E6=9C=AA=E6=98=BE=E7=A4=BA=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E5=8F=82=E6=95=B0=E4=BB=A5=E5=8F=8A=E8=99=9A=E7=BA=BF?= =?UTF-8?q?=E8=BF=9C=E8=A7=86=E8=A7=92=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/PolylineObject/index.js | 21 ++++- src/Obj/Element/cy_html_tabs.js | 129 ++++++++++++++------------- src/Tools/index.js | 11 ++- 3 files changed, 89 insertions(+), 72 deletions(-) diff --git a/src/Obj/Base/PolylineObject/index.js b/src/Obj/Base/PolylineObject/index.js index 96c6f64..9a158f6 100644 --- a/src/Obj/Base/PolylineObject/index.js +++ b/src/Obj/Base/PolylineObject/index.js @@ -1317,12 +1317,19 @@ class PolylineObject extends Base { positions: Cesium.Cartesian3.fromDegreesArrayHeights(fromDegreesArray), width: that.options.width, clampToGround: ground, - material: that.getMaterial(that.options.color, that.options.type, that.entity, that.options), + // material: that.getMaterial(that.options.color, that.options.type, that.entity, that.options), zIndex: that.sdk._entityZIndex } }) + that.entity.polyline.oriWidth = that.options.width that.judgeLine(that.entity, that.options) + that.entity.polyline.material = that.getMaterial( + that.options.color, + that.options.type, + that.entity, + that.options + ) that.sdk._entityZIndex++ PolylineObject.createLabel(that) // that.entity.polyline.positionsLngLat = positions @@ -1529,10 +1536,20 @@ class PolylineObject extends Base { // this.attributeCamera = this.options.attribute.camera.content // this.attributeGoods = this.options.attribute.goods.content + function tabClick(e) { + if (e === '2' || e === 2) {//点击线条样式 + if (2 < _this.options.type && _this.options.type < 13) {//贴图参数 + document.getElementById('dashTextureDom').style.display = 'flex' + } else { + document.getElementById('dashTextureDom').style.display = 'none' + } + } + } + // 创建标签页 let tabsElm = new cy_tabs( 'polyline-object-edit-tabs', - undefined, + tabClick, this.sdk ) // 颜色组件 diff --git a/src/Obj/Element/cy_html_tabs.js b/src/Obj/Element/cy_html_tabs.js index 17eeb99..1270e29 100644 --- a/src/Obj/Element/cy_html_tabs.js +++ b/src/Obj/Element/cy_html_tabs.js @@ -1,76 +1,77 @@ class cy_tabs { - constructor(id, clickTabCallBack, sdk) { - let elm = document.getElementById(id); - let pane = elm.getElementsByTagName('DIV-cy-tab-pane') + constructor(id, clickTabCallBack, sdk) { + let elm = document.getElementById(id); + let pane = elm.getElementsByTagName('DIV-cy-tab-pane') - let tabTop = `