彭宇 hace 2 años
padre
commit
dc450463f0
Se han modificado 1 ficheros con 0 adiciones y 79 borrados
  1. 0 79
      src/components/supermap-2.5d.vue

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

@@ -318,85 +318,6 @@ export default {
       that.createRightClickDescription()
     },
     /**
-     * 地图落点
-     */
-    setMarkers(makerList){
-      let that = this;
-      that.handler = new Cesium.ScreenSpaceEventHandler(this.viewer.scene.canvas);
-      clearInterval(that.aac);
-      for (let i in makerList) {
-        let longitude = makerList[i].lng;
-        let latitude = makerList[i].lat;
-        that.viewer.entities.add({
-          name:"",
-          position: Cesium.Cartesian3.fromDegrees(longitude, latitude),
-          billboard: {
-            image: iconList[makerList[i].icon],
-            width: 48,
-            height: 48,
-            heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
-            disableDepthTestDistance:Number.POSITIVE_INFINITY
-          },
-          description: makerList[i].bindPopupHtml,
-          click: makerList[i].click,
-          parameter: makerList[i].parameter,
-        });
-      }
-      // const carmodel = [];
-      // carmodel[0] = that.viewer.entities.add({
-      //   name:"",
-      //   position: Cesium.Cartesian3.fromDegrees(makerList[0].lng, makerList[0].lat),
-      //   billboard: {
-      //     image: iconList[makerList[0].icon],
-      //     width: 48,
-      //     height: 48,
-      //     heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
-      //     disableDepthTestDistance:Number.POSITIVE_INFINITY
-      //   },
-      //   description: makerList[0].bindPopupHtml,
-      //   click: makerList[0].click,
-      //   parameter: makerList[0].parameter,
-      // });
-      // carmodel[0].ellipse = {
-      //   semiMinorAxis: makerList[0].radius
-      //   semiMajorAxis: makerList[0].radius
-      //   height: 0.0,
-      //   material: Cesium.Color.RED.withAlpha(e),
-      //   outline: true,
-      //   outlineColor: Cesium.Color.BLUE.withAlpha(0.5),
-      //   outlineWidth: 2,
-      //   heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
-      // }
-      // carmodel[1] = that.viewer.entities.add({
-      //   name:"",
-      //   position: Cesium.Cartesian3.fromDegrees(makerList[1].lng, makerList[1].lat),
-      //   billboard: {
-      //     image: iconList[makerList[1].icon],
-      //     width: 48,
-      //     height: 48,
-      //     heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
-      //     disableDepthTestDistance:Number.POSITIVE_INFINITY
-      //   },
-      //   description: makerList[1].bindPopupHtml,
-      //   click: makerList[1].click,
-      //   parameter: makerList[1].parameter,
-      // });
-      // carmodel[0].ellipse = {
-      //   semiMinorAxis: makerList[0].radius
-      //   semiMajorAxis: makerList[0].radius
-      //   height: 0.0,
-      //   material: Cesium.Color.RED.withAlpha(e),
-      //   outline: true,
-      //   outlineColor: Cesium.Color.BLUE.withAlpha(0.5),
-      //   outlineWidth: 2,
-      //   heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
-      // }
-
-      that.viewer.scene.globe.depthTestAgainstTerrain=false;
-      that.createLeftClickDescription();
-      that.createRightClickDescription();
-    },
-    /**
      *鼠标左击事件是原来的气泡
      */
     createLeftClickDescription() {