From 81e426e19db140e630f45409c1569fe16dbcc33f Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期二, 18 五月 2021 15:25:19 +0800
Subject: [PATCH] 修复点击弹窗bug

---
 src/Sgis.js |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/src/Sgis.js b/src/Sgis.js
index fda9cf2..a3e10a0 100644
--- a/src/Sgis.js
+++ b/src/Sgis.js
@@ -1,7 +1,7 @@
 // 鍒濆鍖栨樉绀�
-import MapConfig from '@/conf/MapConfig'
+import MapConfig from './conf/MapConfig'
 import '@components/plugin/PathDashFlow' // 娴佸姩绾垮浘
-import DownLoad from '@components/plugin/DownLoad'
+import DownLoad from './components/plugin/DownLoad'
 // 娴嬮噺
 import '@components/plugin/leaflet-measure-path/leaflet-measure-path'
 
@@ -14,11 +14,10 @@
 import '@/components/plugin/magicMarker.css'
 import '@components/plugin/pulse/Pulse' // marker 澶栧湀娉�
 import '@components/plugin/pulse/Pulse.css' // marker 澶栧湀娉� css
-import BasemapHelper from '@components/helpers/BasemapHelper'
-import VectorLayerHelper from '@components/helpers/VectorLayerHelper'
-
-// import eventBus from '@/eventBus'
-import eventBus from './eventBus'
+import BasemapHelper from './components/helpers/BasemapHelper'
+import VectorLayerHelper from './components/helpers/VectorLayerHelper'
+// import '@/components/plugin/flowline'
+// import eventBus from './eventBus'
 
 let map = null
 const L = window.L
@@ -30,18 +29,13 @@
   const option = mapOption || MapConfig.mapOptions
   map = L.map(div, option)
 
-  map.on('click', (event, a, b) => {
-    console.log(event, a, b)
-  })
-
-  eventBus.$emit('map-obj', map)
+  // eventBus.$emit('map-obj', map)
 
   window.map = map
   window.L = L
 
   return map
 }
-
 /**
  * 鍩虹搴曞浘鍒濆鍖�
  * @param map

--
Gitblit v1.8.0