派生自 wuyushui/SewerAndRainNetwork

李红刚
2021-03-18 3292aeb743e93f2fdeb465cc019c7b05f9776d77
src/Sgis.js
@@ -1,7 +1,7 @@
import BasemapHelper from '@components/helpers/BasemapHelper'
import VectorLayerHelper from '@components/helpers/VectorLayerHelper'
import ServiceLayerHelper from '@components/helpers/ServiceLayerHelper'
import PathDrag from '@components/plugin/PathDrag'
import '@components/plugin/PathDrag'
// import MagicMarker from '@components/plugin/MagicMarker'
// import WmtsSupport from '@components/plugin/wmts_plugins'
import MapConfig from '@/conf/MapConfig'
@@ -10,7 +10,7 @@
// import FullScreen from '@components/plugin/FullScreen'
import DownLoad from '@components/plugin/DownLoad'
// 测量
import LeafletMeasurePath from '@components/plugin/leaflet-measure-path/leaflet-measure-path'
import '@components/plugin/leaflet-measure-path/leaflet-measure-path'
import 'leaflet.markercluster'
// import 'leaflet-canvas-markers'
@@ -27,7 +27,7 @@
  // Leaflet扩展代码
  // Editable.init(L) // 图层编辑
  PathDrag.init(L) // 路径拖拽
  // PathDrag.init(L) // 路径拖拽
  // MagicMarker.init(L) // 动画Marker
  // WmtsSupport.init(L) // 扩展,使支持WMTS
  // CustomPopup.init(L) // 自定义弹出框
@@ -36,7 +36,7 @@
  // FullScreen.init(L)
  // 下载
  DownLoad.init(L)
  LeafletMeasurePath.init(L)
  // LeafletMeasurePath.init(L)
  map = L.map(div, MapConfig.mapOptions)