| | |
| | | import { LayerHbss } from './LayerHbss' |
| | | import { LayerFsss } from './LayerFsss' |
| | | |
| | | const APP_GIS_HOST_2 = 'http://xearth.cn:8088' |
| | | const WFS_URL = APP_GIS_HOST_2 + '/server/ogcserver/PipeLine2/wfs' |
| | | import { SERVICE_TYPE } from '../Constants' |
| | | |
| | | export const LayerPipeLines = { |
| | | code: 'sewersPipeLines', |
| | | name: '管线', |
| | | checked: true, |
| | | checked: false, |
| | | type: 0, |
| | | childLayer: [LayerFsss, LayerHbss], |
| | | layers: [ |
| | | { |
| | | code: 'rainline', |
| | | name: '雨水线', |
| | | sname: '雨水线', |
| | | checked: true, |
| | | wfs: WFS_URL + '?TYPENAME=管网', |
| | | minZoom: 10 |
| | | sname: '管网', |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | icon: 'sewers/雨水线.png', |
| | | color: '#0070ff', |
| | | minZoom: 13, |
| | | styles: { |
| | | COLOR: '#0070ff', |
| | | FILL_COLOR: '#0070ff' |
| | | }, |
| | | filter: 'mediumtype = \'雨水\'', |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'accidentline', |
| | | name: '事故水线', |
| | | name: '事故水', |
| | | sname: '事故水', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=事故水', |
| | | minZoom: 10 |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | minZoom: 13, |
| | | filter: 'mediumtype = \'事故水\'', |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'oilline', |
| | | name: '含油污水线', |
| | | name: '含油污水', |
| | | sname: '含油污水', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=含油污水', |
| | | minZoom: 10 |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | minZoom: 13, |
| | | color: '#ffaa00', |
| | | filter: 'mediumtype = \'含油\'', |
| | | styles: { |
| | | COLOR: '#ffaa00', |
| | | FILL_COLOR: '#ffaa00' |
| | | }, |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'saltline', |
| | | name: '含盐污水线', |
| | | name: '含盐污水', |
| | | sname: '含盐污水', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=含盐污水', |
| | | minZoom: 10 |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | minZoom: 13, |
| | | filter: 'mediumtype = \'含盐\'', |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'alkaliline', |
| | | name: '含碱污水线', |
| | | name: '含碱污水', |
| | | sname: '含碱污水', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=含碱污水', |
| | | minZoom: 10 |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | filter: 'mediumtype = \'含碱\'', |
| | | minZoom: 10, |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'sulfurline', |
| | | name: '含硫污水', |
| | | sname: '含硫污水', |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | filter: 'mediumtype = \'含硫\'', |
| | | minZoom: 10, |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'lifeline', |
| | | name: '生活污水', |
| | | sname: '生活污水', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=生活污水', |
| | | minZoom: 10 |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | filter: 'mediumtype = \'生活污水\'', |
| | | minZoom: 13, |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'purifyline', |
| | | name: '净化水线', |
| | | name: '净化水', |
| | | sname: '净化水', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=净化水', |
| | | minZoom: 10 |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | filter: 'mediumtype = \'净化水\'', |
| | | minZoom: 13, |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'loopline', |
| | | name: '循环水线', |
| | | name: '循环水', |
| | | sname: '循环水', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=循环水', |
| | | minZoom: 10 |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | filter: 'mediumtype = \'循环水\'', |
| | | checked: false, |
| | | minZoom: 13, |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'buildline', |
| | | name: '生产污水', |
| | | sname: '生产污水', |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:pipeline', |
| | | filter: 'mediumtype = \'生产污水\'', |
| | | minZoom: 13, |
| | | color: '#a8a800', |
| | | styles: { |
| | | COLOR: '#a8a800', |
| | | FILL_COLOR: '#a8a800' |
| | | }, |
| | | index: 1 |
| | | } |
| | | ] |
| | | } |