| | |
| | | import { SERVICE_TYPE } from '../Constants' |
| | | |
| | | /** |
| | | * 排口 |
| | | */ |
| | | const APP_GIS_HOST_2 = 'http://xearth.cn:8088' |
| | | const WFS_URL = APP_GIS_HOST_2 + '/server/ogcserver/PipeLine/wfs' |
| | | export const LayerPk = { |
| | | code: 'sewersPk', |
| | | name: '排口', |
| | | checked: true, |
| | | code: 'sewersDischargeport', |
| | | name: '排放口', |
| | | icon: 'sewers/雨水排口.png', |
| | | checked: false, |
| | | type: 0, |
| | | layers: [ |
| | | { |
| | | code: 'sewersNpk', |
| | | name: '内排口', |
| | | sname: '内排口', |
| | | checked: true, |
| | | wfs: WFS_URL + '?TYPENAME=内排口', |
| | | sname: '内排', |
| | | checked: false, |
| | | type: SERVICE_TYPE.WMS, |
| | | icon: 'sewers/雨水排口.png', |
| | | typeName: 'sewer:dischargeport', |
| | | filter: 'pfktype = \'内排\'', |
| | | minZoom: 10 // 在指定级别显示 |
| | | }, |
| | | { |
| | | code: 'sewersWpk', |
| | | name: '外排口', |
| | | sname: '外排口', |
| | | checked: true, // 默认选中状态 |
| | | wfs: WFS_URL + '?TYPENAME=外排口', |
| | | sname: '外排', |
| | | icon: 'sewers/雨水排口.png', |
| | | checked: false, // 默认选中状态 |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:dischargeport', |
| | | filter: 'pfktype = \'外排\'', |
| | | minZoom: 10 |
| | | } |
| | | ] |