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 |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/Sgis.js b/src/Sgis.js
index 6ae1b0a..70db008 100644
--- a/src/Sgis.js
+++ b/src/Sgis.js
@@ -9,6 +9,13 @@
 
 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'
+// 娴嬮噺
+import LeafletMeasurePath from '@components/plugin/leaflet-measure-path/leaflet-measure-path'
+
 let map = null
 const L = window.L
 const initMap = (div) => {
@@ -23,7 +30,12 @@
   WmtsSupport.init(L) // 鎵╁睍锛屼娇鏀寔WMTS
   // CustomPopup.init(L) // 鑷畾涔夊脊鍑烘
   DashFlow.DashFlow(L) // 娴佸姩绾垮浘
-  // Leaflet鎵╁睍浠g爜
+  CanvasMarkers.init(L)// 鐢诲竷鍥惧眰
+  // 鍏ㄥ睆
+  FullScreen.init(L)
+  // 涓嬭浇
+  DownLoad.init(L)
+  LeafletMeasurePath.init(L)
 
   map = L.map(div, MapConfig.mapOptions)
 
@@ -32,6 +44,7 @@
   })
 
   window.map = map
+  window.L = L
   initTileLayersHelper(map)
   return map
 }

--
Gitblit v1.8.0