派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-18 3b1b5623e44135a8e693698cb7a30adf66d86964
src/conf/layers/LayerFsss.js
@@ -1,30 +1,32 @@
/**
 * 区域
 */
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
import { SERVICE_TYPE } from '../Constants'
export const LayerFsss = {
  code: 'sewersFsss',
  name: '附属设施',
  checked: false, // 默认选中状态
  layers: [
    {
    /* {
      code: 'pipeSection',
      name: '管段',
      sname: '管段',
      checked: false,
      wmsLayers: 'sewer:pipesegment'
      // wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipesegment&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=orgname=\'巴陵石化\''
    },
    }, */
    {
      code: 'fourlink',
      name: '四通',
      sname: '四通',
      checked: true,
      minZoom: 16,
      wmsLayers: 'sewer:fourlink',
      type: SERVICE_TYPE.WMS,
      typeName: 'sewer:fourlink',
      // wfs: WFS_URL + '?TYPENAME=四通',
      icon: 'sewers/四通.png'
      icon: 'sewers/四通.png',
      index: 3
    },
    {
      code: 'tee',
@@ -32,16 +34,20 @@
      sname: '三通',
      checked: false,
      minZoom: 16,
      wmsLayers: 'sewer:tee',
      typeName: 'sewer:tee',
      type: SERVICE_TYPE.WMS,
      // wfs: WFS_URL + '?TYPENAME=三通',
      icon: 'sewers/三通.png'
      icon: 'sewers/三通.png',
      index: 3
    },
    {
      code: 'piperack',
      name: '管架(墩)',
      sname: 'PipeRack',
      minZoom: 16,
      wfs: WFS_URL + '?TYPENAME=管架',
      type: SERVICE_TYPE.WMS,
      typeName: 'sewer:piperack',
      icon: 'sewers/管架(墩).png',
      checked: false
    },
    {
@@ -49,13 +55,22 @@
      name: '管廊(带)',
      sname: 'PipeGallery',
      minZoom: 16,
      wfs: WFS_URL + '?TYPENAME=管廊',
      type: SERVICE_TYPE.WMS,
      typeName: 'sewer:pipegallery',
      icon: 'sewers/管廊.png',
      color: '#828282',
      styles: {
        COLOR: '#828282',
        FILL_COLOR: '#828282'
      },
      checked: false
    },
    {
      code: 'pipesegment',
      name: '流向',
      sname: 'ywslx',
      type: SERVICE_TYPE.WMS,
      icon: 'sewers/流向.png',
      checked: false
    },
    {
@@ -64,7 +79,8 @@
      minZoom: 10,
      sname: '阀门',
      checked: false,
      wmsLayers: 'sewer:valve',
      type: SERVICE_TYPE.WMS,
      typeName: 'sewer:valve',
      // wfs: WFS_URL + '?TYPENAME=阀门',
      icon: 'sewers/阀门.png'
    },
@@ -74,7 +90,8 @@
      sname: '弯头',
      minZoom: 16,
      checked: false,
      wmsLayers: 'sewer:elbow',
      type: SERVICE_TYPE.WMS,
      typeName: 'sewer:elbow',
      // wfs: WFS_URL + '?TYPENAME=弯头',
      icon: 'sewers/弯头.png'
    }