| | |
| | | /** |
| | | * 企业预警 |
| | | * 企业应急 |
| | | */ |
| | | import { LayerHbss } from './LayerHbss' |
| | | import { LayerFsss } from './LayerFsss' |
| | | // import { LayerHbss } from './LayerHbss' |
| | | // import { LayerFsss } from './LayerFsss' |
| | | |
| | | import { PIPELINE_WFS } from '../Constants' |
| | | const WFS_URL = PIPELINE_WFS |
| | | import { LayerEvent } from './LayerEvent' |
| | | import { LayerResources } from './LayerResources' |
| | | |
| | | import { SERVICE_TYPE } from '../Constants' |
| | | |
| | | export const LayerEntEmer = { |
| | | code: 'reportEntemeage', |
| | | name: '企业预警', |
| | | code: 'EnterpriseEmergency', |
| | | name: '企业应急', |
| | | checked: false, |
| | | type: 0, |
| | | childLayer: [LayerFsss, LayerHbss], |
| | | childLayer: [LayerEvent, LayerResources], |
| | | layers: [ |
| | | { |
| | | code: 'rainline', |
| | | name: '事前阶段', |
| | | sname: '全部资源', |
| | | name: '基础图层', |
| | | sname: '基础图层', |
| | | checked: false, |
| | | type: 0, |
| | | wmsLayers: 'sewer:pipeline_rain', |
| | | // wfs: WFS_URL + '?TYPENAME=管网&FILTER=<Filter xmlns="http://www.opengis.net/ogc"><PropertyIsEqualTo><PropertyName>mediumtype</PropertyName><Literal>雨水管线</Literal></PropertyIsEqualTo></Filter>', |
| | | type: SERVICE_TYPE.WMS, |
| | | layerGroup: 'sewer:pipeline_group', |
| | | typeName: 'sewer:pipeline', |
| | | icon: 'sewers/雨水线.png', |
| | | color: '#0070ff', |
| | | minZoom: 13, |
| | | styles: { |
| | | COLOR: '#0070ff', |
| | | FILL_COLOR: '#0070ff' |
| | | } |
| | | }, |
| | | filter: 'mediumtype = \'基础图层\'', |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'accidentline', |
| | | name: '应急物资在', |
| | | sname: '事故水', |
| | | name: '在线监测', |
| | | sname: '在线监测', |
| | | checked: false, |
| | | // wmsLayers: 'sewer:pipeline_accident', |
| | | type: 0, |
| | | type: SERVICE_TYPE.WMS, |
| | | layerGroup: 'sewer:pipeline_group', |
| | | typeName: 'sewer:pipeline', |
| | | minZoom: 13, |
| | | wfs: WFS_URL + '?TYPENAME=事故水' |
| | | filter: 'mediumtype = \'在线监测\'', |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'oilline', |
| | | name: '应急车辆', |
| | | sname: '含油污水', |
| | | name: '应急资源', |
| | | sname: '应急资源', |
| | | checked: false, |
| | | type: 0, |
| | | type: SERVICE_TYPE.WMS, |
| | | layerGroup: 'sewer:pipeline_group', |
| | | typeName: 'sewer:pipeline', |
| | | minZoom: 13, |
| | | color: '#ffaa00', |
| | | wmsLayers: 'sewer:pipeline_sewer', |
| | | // wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=mediumtype=\'含油污水\'', |
| | | filter: 'mediumtype = \'应急资源\'', |
| | | styles: { |
| | | COLOR: '#ffaa00', |
| | | FILL_COLOR: '#ffaa00' |
| | | } |
| | | }, |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'saltline', |
| | | name: '应急队伍', |
| | | sname: '含盐污水', |
| | | name: '周边环境', |
| | | sname: '周边环境', |
| | | checked: false, |
| | | type: 0, |
| | | type: SERVICE_TYPE.WMS, |
| | | layerGroup: 'sewer:pipeline_group', |
| | | typeName: 'sewer:pipeline', |
| | | minZoom: 13, |
| | | wfs: WFS_URL + '?TYPENAME=含盐污水' |
| | | filter: 'mediumtype = \'周边环境\'', |
| | | index: 1 |
| | | }, |
| | | { |
| | | code: 'alkaliline', |
| | | name: '污水管线', |
| | | sname: '污水管线', |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | layerGroup: 'sewer:pipeline_group', |
| | | typeName: 'sewer:pipeline', |
| | | filter: 'mediumtype = \'污水管线\'', |
| | | minZoom: 10, |
| | | index: 1 |
| | | } |
| | | ] |
| | | } |