فهرست منبع

超图方法提交

wang_xy 1 سال پیش
والد
کامیت
e91aaa2069
1فایلهای تغییر یافته به همراه17 افزوده شده و 0 حذف شده
  1. 17 0
      src/components/supermap-2.5d.vue

+ 17 - 0
src/components/supermap-2.5d.vue

@@ -917,6 +917,23 @@
         })
         })
       },
       },
       /**
       /**
+       * 地图画线(贴地)
+       */
+      setConnectTwoList(connectList, color, withAlpha) {
+        let that = this
+        //Cesium.Color.fromCssColorString('#67ADDF')   16进制颜色设置
+        let material = Cesium.Color.fromCssColorString(color).withAlpha(withAlpha);
+        that.connectBoxEntityTwo = that.viewer.entities.add({
+          Type: 'Polyline',
+          polyline: {
+            positions: Cesium.Cartesian3.fromDegreesArray(connectList),
+            clampToGround: true, //贴地 true,不贴地  false
+            width: 5,
+            material: material
+          }
+        })
+      },
+      /**
        * 地图落点-覆盖范围
        * 地图落点-覆盖范围
        */
        */
       setMarkersRadius(makerList) {
       setMarkersRadius(makerList) {