From 8eae4c332c821c8aaa3365c84293e836fd8d1dab Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期二, 13 四月 2021 13:48:02 +0800 Subject: [PATCH] 废气图表 --- src/Sgis.js | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Sgis.js b/src/Sgis.js index 6682108..d46bfc2 100644 --- a/src/Sgis.js +++ b/src/Sgis.js @@ -1,7 +1,6 @@ -import BasemapHelper from '@components/helpers/BasemapHelper' -import VectorLayerHelper from '@components/helpers/VectorLayerHelper' + // 鍒濆鍖栨樉绀� -// import '@components/plugin/PathDrag' + import MapConfig from '@/conf/MapConfig' import '@components/plugin/PathDashFlow' // 娴佸姩绾垮浘 import DownLoad from '@components/plugin/DownLoad' @@ -17,16 +16,17 @@ 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' let map = null const L = window.L -const initMap = (div) => { +const initMap = (div, mapOption) => { if (map != null) { map.remove() } DownLoad.init(L) - - map = L.map(div, MapConfig.mapOptions) + const option = mapOption || MapConfig.mapOptions + map = L.map(div, option) map.on('click', (event, a, b) => { console.log(event, a, b) -- Gitblit v1.8.0