付宇航 8 miesięcy temu
rodzic
commit
3134d74432

BIN
screen-demo/src/assets/offPoint.png


+ 4 - 4
screen-demo/src/views/templateInstance.vue

@@ -539,8 +539,8 @@ export default {
         for (let i = 0; i < splitArr1.length; i++) {
           options.positions.push(splitArr1[i].split(','))
         }
-        let highlight= new CTMapOl.cesiumComponent.Highlight(this.mapType === "3D" ? this.map : this.map.map, options);
-        console.log(highlight)
+        // let highlight= new CTMapOl.cesiumComponent.Highlight(this.mapType === "3D" ? this.map : this.map.map, options);
+        // console.log(highlight)
       })
     },
     focus1(num){
@@ -1333,7 +1333,7 @@ export default {
       mapDom.entities.removeAll();
       // 格式化打点位置信息数据
       let data = this.markPoints.map((item) => {
-        return [`${item.longitude}, ${item.latitude}`, item, this.dropIcon, "10,10"]
+        return [`${item.longitude}, ${item.latitude}`, item, item.categorycode != '1' ? this.dropIcon : require('../assets/offPoint.png'), "10,10"]
       })
       // 打点数据信息
       let options = {
@@ -1426,7 +1426,7 @@ export default {
                 offset: [-36, -40],
                 offsetOrigin: "bottom-right",
                 size: [100, 100],
-                src: this.dropIcon,
+                src: v.categorycode != '1' ? this.dropIcon : require('../assets/offPoint.png'),
               }),
             })
         );