| 
														
															@@ -8,7 +8,7 @@ import WKT from "ol/format/WKT.js"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import ScaleLine from "ol/control/ScaleLine"; 
														 | 
														
														 | 
														
															 import ScaleLine from "ol/control/ScaleLine"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import { useRouter } from "vue-router"; 
														 | 
														
														 | 
														
															 import { useRouter } from "vue-router"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import Overlay from 'ol/Overlay' 
														 | 
														
														 | 
														
															 import Overlay from 'ol/Overlay' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import eventBus from "@/api/eventBus"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 /** 
														 | 
														
														 | 
														
															 /** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  * @description 地图层对象 
														 | 
														
														 | 
														
															  * @description 地图层对象 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  */ 
														 | 
														
														 | 
														
															  */ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -23,7 +23,7 @@ class HomeMap { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     let level = 6; 
														 | 
														
														 | 
														
															     let level = 6; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     let coordinate = util.wktCastGeom(location).getFirstCoordinate(); 
														 | 
														
														 | 
														
															     let coordinate = util.wktCastGeom(location).getFirstCoordinate(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     this.kmap = new KMap.Map(target, level, coordinate[0], coordinate[1], null, 6, 22); 
														 | 
														
														 | 
														
															     this.kmap = new KMap.Map(target, level, coordinate[0], coordinate[1], null, 6, 22); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    eventBus.emit('warningMap:init', this.kmap); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     this.addPopup() 
														 | 
														
														 | 
														
															     this.addPopup() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     this.addMapListen() 
														 | 
														
														 | 
														
															     this.addMapListen() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -59,7 +59,7 @@ class HomeMap { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         that.popup.setPosition(event.coordinate); // 设置弹窗位置为点击位置 
														 | 
														
														 | 
														
															         that.popup.setPosition(event.coordinate); // 设置弹窗位置为点击位置 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } else { 
														 | 
														
														 | 
														
															       } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // that.popup.setPosition(undefined); // 如果没有点击到feature,则隐藏弹窗 
														 | 
														
														 | 
														
															         // that.popup.setPosition(undefined); // 如果没有点击到feature,则隐藏弹窗 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-         
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 在这里可以获取feature的属性,并显示在弹窗中 
														 | 
														
														 | 
														
															         // 在这里可以获取feature的属性,并显示在弹窗中 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         let content = '<div>'; 
														 | 
														
														 | 
														
															         let content = '<div>'; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // for (let key in feature.getProperties()) { 
														 | 
														
														 | 
														
															         // for (let key in feature.getProperties()) { 
														 |