From e8bcc8ff69702b8c2ba123981a45e668cf95a01b Mon Sep 17 00:00:00 2001
From: wangrui <zephyrs0894@163.com>
Date: 星期五, 25 十二月 2020 16:17:35 +0800
Subject: [PATCH] 图层控制

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

diff --git a/src/Sgis.js b/src/Sgis.js
index 1165a85..8751989 100644
--- a/src/Sgis.js
+++ b/src/Sgis.js
@@ -7,6 +7,7 @@
 import PathDrag from '@components/plugin/PathDrag'
 import CanvasIcon from '@components/plugin/CanvasMarkers'
 import MagicMarker from '@components/plugin/MagicMarker'
+import WmtsSupport from '@components/plugin/wmts_plugins'
 import 'leaflet.markercluster'
 
 import MapConfig from '@/conf/MapConfig'
@@ -23,11 +24,16 @@
     PathDrag.init(L) // 璺緞鎷栨嫿
     MagicMarker.init(L) // 鍔ㄧ敾Marker
     CanvasIcon.init(L) // 浣跨敤canvas缁樺埗Marker
+    WmtsSupport.init(L) // 鎵╁睍锛屼娇鏀寔WMTS
     // CustomPopup.init(L) // 鑷畾涔夊脊鍑烘
     DashFlow.DashFlow(L) // 娴佸姩绾垮浘
     // Leaflet鎵╁睍浠g爜
 
     map = L.map(div, MapConfig.mapOptions)
+
+    map.on('click', (event, a, b) => {
+        console.log(event, a, b)
+    })
 
     window.map = map
     window.L = L
@@ -43,6 +49,7 @@
 const initBasemapsHelper = (map, L) => {
     // todo 杩欓噷杩涜搴曞浘鍦板浘鐨勫垵濮嬪寲
     var basemapHelper = new BasemapHelper({map, L})
+    console.log(basemapHelper)
     return basemapHelper
 }
 /**

--
Gitblit v1.8.0