Explorar o código

数据查询注释代码查询

maxiaoxiao hai 8 meses
pai
achega
9cb9b3aef1
Modificáronse 1 ficheiros con 0 adicións e 78 borrados
  1. 0 78
      src/components/Query/clickQuery/clickQuery.vue

+ 0 - 78
src/components/Query/clickQuery/clickQuery.vue

@@ -202,7 +202,6 @@ export default {
     PoinyQueryShow(val) {
       if (!this.inited) {
         this.inited = !this.inited;
-        // viewer = viewer;
         viewer.entities.removeAll();
         this.handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
         dataSourceLayer = new Cesium.CustomDataSource("query");
@@ -506,87 +505,10 @@ export default {
         // 结果高亮
 
         this.highlightResultsPng(xy.lng, xy.lat);
-        // const outputCoords = this.convertCoordinates(e.features[0].geometry.points);
-
-        // outputCoords.push(outputCoords[0])
-
-        // let f = { "type": "Polygon", "coordinates": [outputCoords] };
-        // let result = turf.buffer(f, 1 / 99999, {
-        //   units: "kilometers",
-        // });
-
-        // let positions = [];
-        // const twoDArray = result.geometry.coordinates[0];
-        // const oneDArray = twoDArray.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
-
-        // positions = oneDArray;
-
-        // if (this.isArray2D(oneDArray)) {
-        //   const oneDArray2 = oneDArray.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
-        //   positions = oneDArray2;
-
-        // } else {
-
-        // }
-        // query_click.entities.add({
-        //   polygon: {
-        //     // 获取指定属性(positions,holes(图形内需要挖空的区域))
-        //     hierarchy: {
-        //       positions: Cesium.Cartesian3.fromDegreesArray(positions)
-        //     },
-        //     // 边框
-        //     outline: false,
-        //     // 边框颜色
-        //     outlineColor: Cesium.Color.RED,
-        //     // 边框尺寸
-        //     outlineWidth: 10,
-        //     // 填充的颜色,withAlpha透明度
-        //     material: Cesium.Color.RED,
-
-        //     // 是否被提供的材质填充
-        //     fill: true,
-        //     // 恒定高度
-        //     height: 1.1,
-        //     // 显示在距相机的距离处的属性,多少区间内是可以显示的
-        //     // distanceDisplayCondition: new Cesium.DistanceDisplayCondition(1000, 10000000),
-        //     // 是否显示
-        //     show: true,
-        //     // 顺序,仅当`clampToGround`为true并且支持地形上的折线时才有效。
-        //     zIndex: 10
-        //   }
-        // });
-
         if (e && e.totalCount > 0) {
           that.layerList.push(store.state.vectorlayerlist[i]);
           let queryData = [];
           let geoms = [];
-          //   let tempTreeData = store.state.tempResourceTree;
-          //   //递归查询点击的图层信息
-          //   function getTreeId(list, id) {
-          //     //判断list是否是数组
-          //     if (!list instanceof Array) {
-          //       return null;
-          //     }
-          //     //遍历数组
-          //     for (let i in list) {
-          //       let item = list[i];
-          //       if (item.id === id) {
-          //         return item;
-          //       } else {
-          //         //查不到继续遍历
-          //         if (item.children) {
-          //           let value = getTreeId(item.children, id);
-          //           //查询到直接返回
-          //           if (value) {
-          //             return value;
-          //           }
-          //         }
-          //       }
-          //     }
-          //   }
-          //   let legendJson = getTreeId(tempTreeData, obj.id);
-          //   let parseJson =
-          //     legendJson.legend != "" ? JSON.parse(legendJson.legend) : [];
           let parts = [];
           let parseJson = JSON.parse(obj.legend);
           for (let u = 0; u < e.features.length; u++) {