派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-02-26 91543b1ad709531abd31b9cb46f691d2b05beec7
增加菜单主题
2个文件已修改
17 ■■■■■ 已修改文件
src/components/helpers/ServiceLayerHelper.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/LayerSewers.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/helpers/ServiceLayerHelper.js
@@ -125,9 +125,10 @@
          fillColor: '#06cccc',
          color: '#06cccc',
          fillOpacity: 0.2,
          opacity: 0.8,
          dashArray: '10,4',
          dashSpeed: -10
          opacity: 0.8
          // ,
          // dashArray: '10,4',
          // dashSpeed: -10
        }
      },
      minZoom: 10
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, // 在指定级别显示