| 
														
															@@ -152,7 +152,7 @@ class AuthenticMap { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         ElMessage.warning("编辑中") 
														 | 
														
														 | 
														
															         ElMessage.warning("编辑中") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } 
														 | 
														
														 | 
														
															       } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       console.log('f.get("height")',f); 
														 | 
														
														 | 
														
															       console.log('f.get("height")',f); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      res = f.get("height")?false:res 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      res = f.get("height").length>0?false:res 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       return res 
														 | 
														
														 | 
														
															       return res 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }); 
														 | 
														
														 | 
														
															     }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     this.kmap.addLayer(this.clickPointLayer.layer); 
														 | 
														
														 | 
														
															     this.kmap.addLayer(this.clickPointLayer.layer); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -289,6 +289,8 @@ class AuthenticMap { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     mapData.selectPointArr = []; 
														 | 
														
														 | 
														
															     mapData.selectPointArr = []; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  //选中高亮样式 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   //选中点位方法 
														 | 
														
														 | 
														
															   //选中点位方法 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   selectPonitFun(map,evt){ 
														 | 
														
														 | 
														
															   selectPonitFun(map,evt){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     let that = this 
														 | 
														
														 | 
														
															     let that = this 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -307,16 +309,23 @@ class AuthenticMap { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ElMessage.warning("编辑中") 
														 | 
														
														 | 
														
															             ElMessage.warning("编辑中") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }else{ 
														 | 
														
														 | 
														
															           }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ElMessage.success("已选择该点位") 
														 | 
														
														 | 
														
															             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 
														 | 
														
														 | 
														
															             mapData.selectPoint = coordinates 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           } 
														 | 
														
														 | 
														
															           } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 |