派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-03-10 cfb52200f39d0c659eb884a1df331dd997af7e72
src/Sgis.js
@@ -11,6 +11,7 @@
import DashFlow from '@components/plugin/PathDashFlow'
import CanvasMarkers from '@components/plugin/CanvasMarkers'
import FullScreen from '@components/plugin/FullScreen'
import DownLoad from '@components/plugin/DownLoad'
let map = null
const L = window.L
@@ -27,9 +28,10 @@
  // CustomPopup.init(L) // 自定义弹出框
  DashFlow.DashFlow(L) // 流动线图
  CanvasMarkers.init(L)// 画布图层
  // Leaflet扩展代码
  // 全屏
  FullScreen.init(L)
  // 下载
  DownLoad.init(L)
  map = L.map(div, MapConfig.mapOptions)
@@ -38,6 +40,7 @@
  })
  window.map = map
  window.L = L
  initTileLayersHelper(map)
  return map
}