派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-02-26 56b43d0a37ec52b718b32b00c63eb88f2e2744f3
src/conf/LayerSewers.js
@@ -1,18 +1,20 @@
import { GEOM_TYPE } from './Constants'
// const APP_GIS_HOST_2 = 'http://xearth.cn:6230'
const APP_GIS_HOST_2 = 'http://localhost:3000'
// const APP_GIS_HOST_2 = 'http://localhost:3000'
const APP_GIS_HOST_2 = 'http://192.168.31.226:8088'
export const LayerSewersLine = {
  code: 'pipeline',
  name: '管网数据',
  type: 'geojson',
  // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1',
  url: APP_GIS_HOST_2 + '/layer/findLayer?layerName={sname}',
  // url: APP_GIS_HOST_2 + '/server/ogcserver/PipeLineTest/wms?version=1.1.1',
  // url: APP_GIS_HOST_2 + '/layer/findLayer?layerName={sname}',
  url: APP_GIS_HOST_2 + '/server/ogcserver/PipeLine/wfs?version=1.0.0&TYPENAME={sname}&REQUEST=getfeature&OUTPUTFORMAT=json&maxFeatures=20000',
  checked: true,
  layers: [
    {
      code: 'rainline',
      name: '雨水线',
      sname: 'pipeline', // 表名
      sname: '管网', // 表名
      checked: true, // 默认选中状态
      filter: {},
      zoom: 10, // 在指定级别显示