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 = `