派生自 wuyushui/SewerAndRainNetwork

XingChuan
2021-05-30 2d5e75bbc04d8c4c5c7dc6bb141ad16ffa2d9936
src/conf/layers/LayerPipeLines.js
@@ -4,78 +4,196 @@
import { LayerHbss } from './LayerHbss'
import { LayerFsss } from './LayerFsss'
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
import { SERVICE_TYPE } from '../Constants'
export const LayerPipeLines = {
  code: 'sewersPipeLines',
  name: '管线',
  checked: false,
  type: 0,
  childLayer: [LayerFsss, LayerHbss],
  layers: [
    {
      code: 'rainline',
      name: '雨水线',
      sname: '雨水线',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=管网',
      minZoom: 10
      sname: '雨水',
      checked: true,
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/雨水线.png',
      legendImage: '../.././assets/images/map/sewers/雨水线.png',
      color: '#0070ff',
      minZoom: 13,
      styles: {
        COLOR: '#0070ff',
        FILL_COLOR: '#0070ff'
      },
      filter: 'mediumtype = \'雨水\'',
      index: 20
    },
    {
      code: 'accidentline',
      name: '事故水线',
      name: '事故水',
      sname: '事故水',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=事故水',
      minZoom: 10
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/事故水.png',
      minZoom: 13,
      // color: 'rgb(230, 76, 0)',
      color: '#E64C00',
      styles: {
        COLOR: '#E64C00',
        FILL_COLOR: '#E64C00'
      },
      filter: 'mediumtype = \'事故水\'',
      index: 20
    },
    {
      code: 'oilline',
      name: '含油污水线',
      name: '含油污水',
      sname: '含油污水',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=含油污水',
      minZoom: 10
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/含油污水.png',
      minZoom: 13,
      color: '#ffaa00',
      filter: 'mediumtype = \'含油污水\'',
      styles: {
        COLOR: '#ffaa00',
        FILL_COLOR: '#ffaa00'
      },
      index: 20
    },
    {
      code: 'saltline',
      name: '含盐污水线',
      name: '含盐污水',
      sname: '含盐污水',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=含盐污水',
      minZoom: 10
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/含盐污水.png',
      minZoom: 13,
      color: '#FF7F7F',
      filter: 'mediumtype = \'含盐污水\'',
      styles: {
        COLOR: '#FF7F7F',
        FILL_COLOR: '#FF7F7F'
      },
      index: 20
    },
    {
      code: 'alkaliline',
      name: '含碱污水线',
      name: '含碱污水',
      sname: '含碱污水',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=含碱污水',
      minZoom: 10
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/含碱污水.png',
      filter: 'mediumtype = \'含碱污水\'',
      minZoom: 10,
      color: '#E8BEFF',
      styles: {
        COLOR: '#E8BEFF',
        FILL_COLOR: '#E8BEFF'
      },
      index: 20
    },
    {
      code: 'sulfurline',
      name: '含硫污水',
      sname: '含硫污水',
      checked: false,
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/含硫污水.png',
      filter: 'mediumtype = \'含硫污水\'',
      minZoom: 10,
      color: '',
      styles: {
        COLOR: '',
        FILL_COLOR: ''
      },
      index: 20
    },
    {
      code: 'lifeline',
      name: '生活污水',
      sname: '生活污水',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=生活污水',
      minZoom: 10
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/生活污水.png',
      filter: 'mediumtype = \'生活污水\'',
      minZoom: 13,
      color: '#A8A800',
      styles: {
        COLOR: '#A8A800',
        FILL_COLOR: '#A8A800'
      },
      index: 20
    },
    {
      code: 'purifyline',
      name: '净化水线',
      name: '净化水',
      sname: '净化水',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=净化水',
      minZoom: 10
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/净化水.png',
      filter: 'mediumtype = \'净化水\'',
      minZoom: 13,
      color: '#55FF00',
      styles: {
        COLOR: '#55FF00',
        FILL_COLOR: '#55FF00'
      },
      index: 20
    },
    {
      code: 'loopline',
      name: '循环水线',
      name: '循环水',
      sname: '循环水',
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/循环水.png',
      filter: 'mediumtype = \'循环水\'',
      checked: false,
      wfs: WFS_URL + '?TYPENAME=循环水',
      minZoom: 10
      minZoom: 13,
      color: '#73FFDF',
      styles: {
        COLOR: '#73FFDF',
        FILL_COLOR: '#73FFDF'
      },
      index: 20
    },
    {
      code: 'buildline',
      name: '生产污水',
      sname: '生产污水',
      checked: false,
      type: SERVICE_TYPE.WMS,
      layerGroup: 'sewer:pipeline_group',
      typeName: 'sewer:pipeline',
      icon: 'sewers/生产污水.png',
      filter: 'mediumtype = \'生产污水\'',
      minZoom: 13,
      color: '#a8a800',
      styles: {
        COLOR: '#a8a800',
        FILL_COLOR: '#a8a800'
      },
      index: 20
    }
  ]
}