派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-02-26 938cc6f49efa0d54bf7355e83eb7b545ce1b0592
src/conf/MapConfig.js
@@ -1,6 +1,6 @@
import * as L from 'leaflet'
import TDT from './TDT'
import { ServiceLayers, PointLayers } from './Layers'
import { LayerSewersLine, LayerSewersPoint } from './LayerSewers'
const curWwwPath = window.document.location.href
const pathname = window.document.location.pathname
const pos = curWwwPath.indexOf(pathname)
@@ -27,7 +27,8 @@
  inertia: true,
  zoomControl: false,
  attributionControl: false,
  editable: true
  editable: true,
  preferCanvas: true
}
const mapConfig = {
@@ -35,8 +36,7 @@
  showBaseMapType: 1, // 1显示天地图,2显示arcgis地图
  IntranetBaseMaps: TDT.intranet,
  InternetBaseMaps: TDT.internet,
  ServiceLayers: ServiceLayers,
  PointLayers: PointLayers
  Layers: { LayerSewersLine: [LayerSewersLine], layerSewersPoint: LayerSewersPoint } // 污雨水图层配置
}
/**
@@ -57,6 +57,5 @@
  mapOptions,
  mapConfig,
  TokenConfig,
  BLUEMAP_HOST
}