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) {