From 47db5ff33fbb9df546b24759d52699a68fd4e841 Mon Sep 17 00:00:00 2001 From: wangrui <zephyrs0894@163.com> Date: 星期二, 22 十二月 2020 18:01:18 +0800 Subject: [PATCH] 修改底图错位的问题。 --- src/Sgis.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/Sgis.js b/src/Sgis.js index 1165a85..d8b2ffd 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,12 +24,17 @@ 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 -- Gitblit v1.8.0