From 150aca8f5946079d4dce28d52ec033c4e61b0f0f Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期三, 10 三月 2021 10:51:14 +0800
Subject: [PATCH] 菜单组件联动

---
 src/Sgis.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/Sgis.js b/src/Sgis.js
index 22380e4..f736ba3 100644
--- a/src/Sgis.js
+++ b/src/Sgis.js
@@ -10,6 +10,9 @@
 import MapConfig from '@/conf/MapConfig'
 import DashFlow from '@components/plugin/PathDashFlow'
 import CanvasMarkers from '@components/plugin/CanvasMarkers'
+import FullScreen from '@components/plugin/FullScreen'
+import DownLoad from '@components/plugin/DownLoad'
+
 let map = null
 const L = window.L
 const initMap = (div) => {
@@ -25,7 +28,10 @@
   // CustomPopup.init(L) // 鑷畾涔夊脊鍑烘
   DashFlow.DashFlow(L) // 娴佸姩绾垮浘
   CanvasMarkers.init(L)// 鐢诲竷鍥惧眰
-  // Leaflet鎵╁睍浠g爜
+  // 鍏ㄥ睆
+  FullScreen.init(L)
+  // 涓嬭浇
+  DownLoad.init(L)
 
   map = L.map(div, MapConfig.mapOptions)
 
@@ -34,6 +40,7 @@
   })
 
   window.map = map
+  window.L = L
   initTileLayersHelper(map)
   return map
 }

--
Gitblit v1.8.0