派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-13 f0cfb0ed35b9001b4b8f766636fd17ab31e911b8
添加板块图层
1个文件已添加
1个文件已修改
73 ■■■■■ 已修改文件
src/conf/MapConfig.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerPlate.js 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/MapConfig.js
@@ -3,6 +3,7 @@
import { LayerTopic } from './LayerTopic'
import { LayerBasin } from './layers/LayerBasin'
import { LayerEmergency } from './LayerEmergency'
import { LayerPlate } from './layers/LayerPlate'
const curWwwPath = window.document.location.href
const pathname = window.document.location.pathname
@@ -42,7 +43,7 @@
  IntranetBaseMaps: TDT.intranet,
  InternetBaseMaps: TDT.internet,
  Layers: {
    LayerSewersLine: [LayerBasin, LayerTopic, LayerEmergency]
    LayerSewersLine: [LayerBasin, LayerPlate, LayerTopic, LayerEmergency]
  } // 污雨水图层配置
}
src/conf/layers/LayerPlate.js
New file
@@ -0,0 +1,70 @@
/**
 * 板块
 */
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerPlate = {
  code: 'sewersPlate',
  name: '板块图层',
  checked: true,
  isShow: true,
  type: 2,
  layers: [
    {
      code: 'plateYt',
      name: '油田',
      sname: '油田', // 表名
      checked: true, // 默认选中状态
      type: 2,
      url: WFS_URL + '?TYPENAME=公司'
    },
    {
      code: 'plateLh',
      name: '炼化',
      sname: '炼化',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=码头'
    },
    {
      code: 'plateXs',
      name: '销售',
      sname: '销售',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
    },
    {
      code: 'plateHg',
      name: '化工',
      sname: '化工',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
    },
    {
      code: 'plateZy',
      name: '专业公司',
      sname: '专业公司科研机构',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
    },
    {
      code: 'plateKyjg',
      name: '科研机构',
      sname: '科研机构',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
    },
    {
      code: 'plateGcdw',
      name: '工程单位',
      sname: '工程单位',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
    }
  ]
}