From f21ba60dd8cd2f9f021d579fe52325abd37f4af1 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期三, 10 三月 2021 17:27:34 +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 af7ecb2..70db008 100644
--- a/src/Sgis.js
+++ b/src/Sgis.js
@@ -11,6 +11,10 @@
 import DashFlow from '@components/plugin/PathDashFlow'
 import CanvasMarkers from '@components/plugin/CanvasMarkers'
 import FullScreen from '@components/plugin/FullScreen'
+// 涓嬭浇
+import DownLoad from '@components/plugin/DownLoad'
+// 娴嬮噺
+import LeafletMeasurePath from '@components/plugin/leaflet-measure-path/leaflet-measure-path'
 
 let map = null
 const L = window.L
@@ -27,9 +31,11 @@
   // CustomPopup.init(L) // 鑷畾涔夊脊鍑烘
   DashFlow.DashFlow(L) // 娴佸姩绾垮浘
   CanvasMarkers.init(L)// 鐢诲竷鍥惧眰
-  // Leaflet鎵╁睍浠g爜
   // 鍏ㄥ睆
   FullScreen.init(L)
+  // 涓嬭浇
+  DownLoad.init(L)
+  LeafletMeasurePath.init(L)
 
   map = L.map(div, MapConfig.mapOptions)
 
@@ -38,6 +44,7 @@
   })
 
   window.map = map
+  window.L = L
   initTileLayersHelper(map)
   return map
 }

--
Gitblit v1.8.0