From 150a37f948214be4bd183b30f3f2865a6f1c519f Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期四, 29 四月 2021 14:16:18 +0800 Subject: [PATCH] 替换wms服务初步 --- src/Sgis.js | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Sgis.js b/src/Sgis.js index d46bfc2..d74d329 100644 --- a/src/Sgis.js +++ b/src/Sgis.js @@ -1,9 +1,7 @@ - // 鍒濆鍖栨樉绀� - -import MapConfig from '@/conf/MapConfig' +import MapConfig from './conf/MapConfig' import '@components/plugin/PathDashFlow' // 娴佸姩绾垮浘 -import DownLoad from '@components/plugin/DownLoad' +import DownLoad from './components/plugin/DownLoad' // 娴嬮噺 import '@components/plugin/leaflet-measure-path/leaflet-measure-path' @@ -16,8 +14,10 @@ import '@/components/plugin/magicMarker.css' import '@components/plugin/pulse/Pulse' // marker 澶栧湀娉� import '@components/plugin/pulse/Pulse.css' // marker 澶栧湀娉� css -import BasemapHelper from '@components/helpers/BasemapHelper' -import VectorLayerHelper from '@components/helpers/VectorLayerHelper' +import BasemapHelper from './components/helpers/BasemapHelper' +import VectorLayerHelper from './components/helpers/VectorLayerHelper' +// import eventBus from './eventBus' + let map = null const L = window.L const initMap = (div, mapOption) => { @@ -32,6 +32,8 @@ console.log(event, a, b) }) + // eventBus.$emit('map-obj', map) + window.map = map window.L = L -- Gitblit v1.8.0