派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-02-22 a6da1ff6d9b294f46955da5d5cff30919467fa8b
src/conf/MapConfig.js
@@ -12,7 +12,7 @@
// service主机配置
const APP_GIS_HOST = 'http://xearth.cn:6299'
const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6289'
// const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6289'
// 自定义主机配置
const BLUEMAP_HOST = APP_GIS_HOST // 公司发布的地图服务,用于测试的地址
@@ -35,7 +35,6 @@
  attributionControl: false,
  editable: true
}
const mapConfig = {
  IsLoadMapByToken: true, // 是否通过token加载地图
  showBaseMapType: 1, // 1显示天地图,2显示arcgis地图
@@ -202,8 +201,7 @@
      url: SINOPEC_GIS_HOST + '/OneMapServer/rest/services/base-map-image-globe/MapServer'
    }
  ],
  ServiceLayers: [
  InitLoad: [
    {
      code: 'guojie',
      name: '国界',
@@ -216,7 +214,9 @@
      option: {
        zoomOffset: 1
      }
    },
    }
  ],
  ServiceLayers: [
    {
      code: 'pipeline',
      name: '管网数据',
@@ -224,7 +224,8 @@
      icon_deactived: '',
      type: 'wms',
      // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1',
      url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1',
      url: 'http://localhost:8080/wms?version=1.1.1',
      // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1',
      inLegend: true,
      checked: true,
      option: {
@@ -243,73 +244,85 @@
          name: '雨水线',
          sname: '雨水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'oilline',
          name: '含油污水线',
          sname: '含油污水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'saltline',
          name: '含盐污水线',
          sname: '含盐污水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'alkaliline',
          name: '含碱污水线',
          sname: '含碱污水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'outlet',
          name: '排口',
          sname: '排口',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'pk' // 关联PointLayers
        },
        {
          code: 'accidentline',
          name: '事故水线',
          sname: '事故水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'loopline',
          name: '循环水线',
          sname: '循环水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'purifyline',
          name: '净化水线',
          sname: '净化水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'lifeline',
          name: '生活污水',
          sname: '生活污水',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'fsss,hbss' // 关联PointLayers
        },
        {
          code: 'areainfo',
          name: '区域信息',
          sname: '区域信息',
          checked: true, // 默认选中状态
          filter: {}
          filter: {},
          childLayer: 'qyxx' // 关联PointLayers
        }
      ]
        }
      ],
      filtersGroup: [
  PointLayers: [
        {
          code: 'fsss',
          name: '附属设施',
@@ -594,8 +607,6 @@
              sname: '管段',
              checked: true, // 默认选中状态
              geom: GEOM_POINT
            }
          ]
        }
      ]
    }