| 
					
				 | 
			
			
				@@ -152,7 +152,7 @@ class AuthenticMap { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ElMessage.warning("编辑中") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       console.log('f.get("height")',f); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      res = f.get("height")?false:res 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      res = f.get("height").length>0?false:res 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return res 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.kmap.addLayer(this.clickPointLayer.layer); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -289,6 +289,8 @@ class AuthenticMap { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     mapData.selectPointArr = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //选中高亮样式 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //选中点位方法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   selectPonitFun(map,evt){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     let that = this 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -307,16 +309,23 @@ class AuthenticMap { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ElMessage.warning("编辑中") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ElMessage.success("已选择该点位") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            const features = that.kmap.getLayerFeatures() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            features.forEach(item =>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              if(item.get("id")===mapData.selectPointArr[0].get("id")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  const list = item.getGeometry().getCoordinates(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  const arr = list[0][0].find(subArray => subArray.includes(coordinates)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  that.selectPointLayer.source.clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  let point = new Feature(new Point(arr)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  that.selectPointLayer.addFeature(point); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const features = f 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //代码可优化,明天优化 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if(mapData.selectPointArr.length>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(features.get("id")===mapData.selectPointArr[0].get("id")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const list = features.getGeometry().getCoordinates(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const arr = list[0][0].find(subArray => subArray.includes(coordinates)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    that.selectPointLayer.source.clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    let point = new Feature(new Point(arr)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    that.selectPointLayer.addFeature(point); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const list = mapData.point.getGeometry().getCoordinates(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const arr = list[0][0].find(subArray => subArray.includes(coordinates)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    that.selectPointLayer.source.clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    let point = new Feature(new Point(arr)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    that.selectPointLayer.addFeature(point); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mapData.selectPoint = coordinates 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |