zhiyuan-007 преди 1 месец
родител
ревизия
1649c87239
променени са 1 файла, в които са добавени 17 реда и са изтрити 14 реда
  1. 17 14
      src/components/mapJK.vue

+ 17 - 14
src/components/mapJK.vue

@@ -1073,7 +1073,6 @@ export default {
         let opposite_where = params.opposite_where;
         let opposite_renderer = params.opposite_renderer;
         let item = this.m_map.layers.findIndex(item => item.id === id);
-        debugger
         if (status) {
           if (item > -1) {
           let layer = this.m_map.layers.find(item => item.id === id);
@@ -1317,7 +1316,6 @@ export default {
           "esri/identity/IdentityManager","esri/layers/SHCTiledLayer",
         ]).then(async ([SceneLayer, MapImageLayer, TileLayer, BuildingSceneLayer, IntegratedMeshLayer, FeatureLayer, SHCTiledNewLayer, SHCMapServiceLayerNew,IdentityManager,SHCTiledLayer]) => {
           //获取参数
-          debugger
           let id = params.id;
           let title = params.title;
           let visible = params.visible;
@@ -1402,7 +1400,7 @@ export default {
                     renderer: renderer,
                     definitionExpression:definitionExpression,
                     outFields: ["*"],
-                    popupEnabled: false,
+                    //popupEnabled: false,
                   });
                   break;
                 case "dynamic":
@@ -2098,7 +2096,7 @@ export default {
 
       let viewID = params.viewID;
       let mapID = params.mapID;
-      let clickHandeID = params.clickHandeID;
+      let clickHandleID = params.clickHandleID;
       let n_clickHande;
       let n_map = this.m_map;
       let n_view = this.m_view;
@@ -2120,10 +2118,10 @@ export default {
           }
         }
       }
-      if(clickHandeID){
+      if(clickHandleID){
         if(m_clickHandles){
           for (const clickHande of m_clickHandles) {
-            if (clickHande.id == clickHandeID) {
+            if (clickHande.id == clickHandleID) {
               n_clickHande = clickHande.content;
             }
           }
@@ -2131,7 +2129,7 @@ export default {
       }
 
       //点查询
-      if(n_clickHande){
+      if(n_clickHande!==undefined){
         n_clickHande = n_view.on("click",(event) =>{
           let screenPoint = {
             x:event.x,
@@ -2802,7 +2800,6 @@ export default {
         this.m_sketchViewModel.defaultCreateOptions = {hasZ: hasZ};
       }
       this.m_calculation = false;
-      debugger
       if(!hasZ){    //如果是三维不进行测量
         if(is_calculation){
           this.m_calculation =is_calculation;
@@ -3247,7 +3244,6 @@ export default {
             id: "cylinderExtentEffect",
             title: "范围图层"
           })
-          debugger
           let geometryRings = params.ringsArr;
           geometryRings.forEach((itemRings)=>{
             let polygonVertices = itemRings[0].slice(0, itemRings[0].length - 1);
@@ -7754,14 +7750,21 @@ export default {
           arr.push("/T8101L/MapServer/0");
           arr.push("/T8101L/MapServer/1");
           arr.push("/T8101L/MapServer/2");
+          arr.push("/T8101L/MapServer/3");
+          arr.push("/T8101L/MapServer/4");
         } else if (typename == "通信") {
           arr.push("/T8102L/MapServer/0");
           arr.push("/T8102L/MapServer/1");
           arr.push("/T8102L/MapServer/2");
+          arr.push("/T8102L/MapServer/3");
+          arr.push("/T8102L/MapServer/4");
         } else if (typename == "给水") {
           arr.push("/T8103L/MapServer/0");
         } else if (typename == "排水") {
           arr.push("/T8104L/MapServer/0");
+          arr.push("/T8104L/MapServer/1");
+          arr.push("/T8104L/MapServer/2");
+          arr.push("/T8104L/MapServer/3");
         } else if (typename == "燃气") {
           arr.push("/T8105L/MapServer/0");
           arr.push("/T8105L/MapServer/1");
@@ -8165,7 +8168,6 @@ export default {
         let shendu = params.shendu;
         let result = [];
         let taskArray = [];
-        debugger
         ids.forEach((id)=>{
           let url =  _this.m_map.layers.find(item => item.id === id).url;
           let layers = _this.m_map.layers.find(item => item.id === id).sublayers;
@@ -9872,7 +9874,7 @@ export default {
         "esri/symbols/SimpleLineSymbol",
         "esri/geometry/Polygon",
       ]).then(([Graphic, Mesh, Point,Polyline, MeshComponent, GraphicsLayer,TextSymbol,SimpleLineSymbol,Polygon]) =>{
-        debugger
+
         if(params.status == "show"){
           let f_layer = this.m_map.layers.find(item => item.id === "cylinderEffect");
           if (f_layer) {
@@ -9974,8 +9976,6 @@ export default {
               });
               graphicsLayer.add(lineGraphic);
             }
-
-            debugger
             // 从Polygon获取顶点
             let vertices = [];
             polygon.rings[0].forEach(point => {
@@ -12143,7 +12143,6 @@ export default {
               this.m_view.graphics.removeAll();
             }
             let position = params.position;
-            debugger
             position.forEach((data) => {
               let rings = data.rings;
               //添加图标
@@ -12363,6 +12362,9 @@ export default {
         .esri-popup__main-container, .esri-popup__pointer-direction, .esri-popup__header-title:hover, .esri-popup__button:hover {
           background: rgba(0, 31, 112, 0.9);
         }
+        .esri-feature{
+          background-color: rgba(0, 31, 112, 0.9) !important;
+        }
       }
     }
     ::v-deep {
@@ -12371,6 +12373,7 @@ export default {
       }
       .esri-popup__header-title, .esri-widget, .esri-popup__button, .esri-popup__button:hover, .esri-widget__table {
         color: #fff;
+        background-color: rgba(0, 31, 112, 0.9) !important;
       }
       .esri-popup__button--dock {
         display: none;