派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-04-12 68d9f6b85690aa6402a69a1bc748be7129f39ed1
src/conf/MapConfig.js
@@ -1,7 +1,8 @@
import * as L from 'leaflet'
import TDT from './TDT'
import { LayerSewersLine, LayerSewersPoint } from './LayerSewers'
import { LayerWasteWater } from './LayerWasteWater'
import { LayerTopic } from './LayerTopic'
import { LayerBasin } from './layers/LayerBasin'
const curWwwPath = window.document.location.href
const pathname = window.document.location.pathname
const pos = curWwwPath.indexOf(pathname)
@@ -22,8 +23,9 @@
  minZoom: 3,
  maxZoom: 18,
  // center: [26, 104],
  center: [32.224016189575195, 118.77070426940918],
  zoom: 14,
  center: [38.828558921813965, 117.41676807403564],
  // center: [29.454345703125, 113.40362548828125],
  zoom: 5,
  worldCopyJump: true,
  inertia: true,
  zoomControl: false,
@@ -38,7 +40,9 @@
  // defaultBasemapCode: 'tianditu_img', // 默认显示 地图类型
  IntranetBaseMaps: TDT.intranet,
  InternetBaseMaps: TDT.internet,
  Layers: { LayerSewersLine: [LayerSewersLine, LayerWasteWater], layerSewersPoint: LayerSewersPoint } // 污雨水图层配置
  Layers: {
    LayerSewersLine: [LayerBasin, LayerTopic]
  } // 污雨水图层配置
}
/**
@@ -77,5 +81,6 @@
  mapConfig,
  TokenConfig,
  BLUEMAP_HOST
  // mapTokenArray
  // MagicMaker
}