فهرست منبع

修复4326坐标系无法定位的问题

lkk 11 ماه پیش
والد
کامیت
b2286e895f
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      src/components/Query/clickQuery/clickQuery.vue

+ 6 - 6
src/components/Query/clickQuery/clickQuery.vue

@@ -258,7 +258,7 @@ export default {
         // this.viewer.flyTo(this.viewer.entities);
       }
     },
-    flyTo(index) {
+   flyTo(index) {
       this.dataSourceLayer.entities.removeAll();
       let geoms = this.queryResultsGeom[this.activeLayerId];
       let parts = this.queryResultsGeomPart[this.activeLayerId];
@@ -298,7 +298,6 @@ export default {
     },
     handleTabClick(item, a) {
       this.activeLayerId = item.name;
-      console.log('this.: ', this.activeLayerId);
     },
     // 设置数据
     setData() {
@@ -607,10 +606,11 @@ export default {
 
               let points = [];
               for (let y = 0; y < e.features[u].geometry.points.length; y++) {
-                let c = that.cartesianToCartographic84(
-                  e.features[u].geometry.points[y].x,
-                  e.features[u].geometry.points[y].y
-                );
+                let c = e.features[u].geometry.points[y]
+                // let c = that.cartesianToCartographic84(
+                //   e.features[u].geometry.points[y].x,
+                //   e.features[u].geometry.points[y].y
+                // );
                 points.push([c.x, c.y]);
               }
               parts.push(e.features[u].geometry.parts);