派生自 wuyushui/SewerAndRainNetwork

seatonwan9
2021-05-30 0039429882f8434000a0f61d6995324f1589633a
src/Sgis.js
@@ -1,7 +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'
@@ -14,11 +14,12 @@
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'
import eventBus from './eventBus'
import '@/components/plugin/leaflet-echart'
// import '@/components/plugin/flowline'
// import eventBus from './eventBus'
let map = null
const L = window.L
@@ -30,18 +31,13 @@
  const option = mapOption || MapConfig.mapOptions
  map = L.map(div, option)
  map.on('click', (event, a, b) => {
    console.log(event, a, b)
  })
  eventBus.$emit('map-obj', map)
  // eventBus.$emit('map-obj', map)
  window.map = map
  window.L = L
  return map
}
/**
 * 基础底图初始化
 * @param map