派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-03-10 4b9b76e141865b150cd2fdba139f9a80b39dc7e9
src/Sgis.js
@@ -8,10 +8,13 @@
import WmtsSupport from '@components/plugin/wmts_plugins'
import MapConfig from '@/conf/MapConfig'
import DashFlow from '@components/plugin/PathDashFlow'
// import DashFlow from '@components/plugin/PathDashFlow'
import CanvasMarkers from '@components/plugin/CanvasMarkers'
import FullScreen from '@components/plugin/FullScreen'
// 下载
import DownLoad from '@components/plugin/DownLoad'
// 测量
import LeafletMeasurePath from '@components/plugin/leaflet-measure-path/leaflet-measure-path'
let map = null
const L = window.L
@@ -26,12 +29,13 @@
  MagicMarker.init(L) // 动画Marker
  WmtsSupport.init(L) // 扩展,使支持WMTS
  // CustomPopup.init(L) // 自定义弹出框
  DashFlow.DashFlow(L) // 流动线图
  // DashFlow.DashFlow(L) // 流动线图
  CanvasMarkers.init(L)// 画布图层
  // 全屏
  FullScreen.init(L)
  // 下载
  DownLoad.init(L)
  LeafletMeasurePath.init(L)
  map = L.map(div, MapConfig.mapOptions)