| | |
| | | import AjaxUtils from '../../../utils/AjaxUtils' |
| | | import { PIPELINE_WMS } from '../../../conf/Constants' |
| | | import { WMS_URL } from '../../../conf/Constants' |
| | | import Popup from '@views/popup/Popup' |
| | | import WmsLayerList from '../dataset/WmsLayerList' |
| | | |
| | |
| | | if (filter.length > 0) { |
| | | params.cql_filter = filter |
| | | } |
| | | this.wmsLayer = this.L.tileLayer.wms(PIPELINE_WMS, params).addTo(this.map) |
| | | this.wmsLayer = this.L.tileLayer.wms(WMS_URL, params).addTo(this.map) |
| | | } |
| | | |
| | | clickListener () { |
| | |
| | | Y: Math.round(point.y), |
| | | BBOX: this.map.getBounds().toBBoxString() |
| | | }, this.params) |
| | | AjaxUtils.get4JsonDataByUrl(PIPELINE_WMS, params, (res) => { |
| | | AjaxUtils.get4JsonDataByUrl(WMS_URL, params, (res) => { |
| | | const features = res.data.features |
| | | /** |
| | | * { |
| | |
| | | export const WFS_URL = 'http://xearth.cn:6240/geoserver/sewer/ows?service=WFS' |
| | | export const PIPELINE_WFS = 'http://xearth.cn:8088/server/ogcserver/PipeLine2/wfs' |
| | | export const PIPELINE_WMS = 'http://xearth.cn:6240/geoserver/sewer/wms' |
| | | |
| | | // export const PIPELINE_WMS = 'http://xearth.cn:6240/geoserver/sewer/wms' |
| | | export const WMS_URL = 'http://10.238.235.179:6240/geoserver/sewer/wms' |
| | | export const WFS_URL = 'http://10.238.235.179:6240/geoserver/sewer/ows?service=WFS' |
| | | |
| | | export const GEOM_TYPE = { |
| | | POINT: 'point', |
| | |
| | | /** |
| | | * 区域 |
| | | */ |
| | | import { PIPELINE_WFS } from '../Constants' |
| | | const WFS_URL = PIPELINE_WFS |
| | | export const LayerAirQuality = { |
| | | code: 'sewersAirQuality', |
| | | name: '空气质量', |
| | | checked: false, |
| | | type: 0, |
| | | layers: [ |
| | | { |
| | | code: 'airQualityStation', |
| | | name: '监测站', |
| | | sname: '监测站', // 表名 |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | url: WFS_URL + '?TYPENAME=公司' |
| | | checked: false |
| | | } |
| | | ] |
| | | } |
| | |
| | | /** |
| | | * 区域 |
| | | */ |
| | | import { SERVICE_TYPE, PIPELINE_WFS } from '../Constants' |
| | | const WFS_URL = PIPELINE_WFS |
| | | export const LayerArea = { |
| | | code: 'sewersArea', |
| | | name: '区域信息', |
| | |
| | | code: 'sewersAreaGs', |
| | | name: '公司', |
| | | sname: '公司', // 表名 |
| | | checked: true, // 默认选中状态 |
| | | type: 0, |
| | | url: WFS_URL + '?TYPENAME=公司' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'sewersAreaMt', |
| | | name: '码头', |
| | | sname: '码头', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | wfs: WFS_URL + '?TYPENAME=码头' |
| | | checked: false |
| | | }, |
| | | { |
| | | code: 'sewersAreaZz', |
| | | name: '装置区', |
| | | sname: '装置区', |
| | | checked: false, // 默认选中状态 |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'sewer:unitareaboundary' |
| | | checked: false |
| | | } |
| | | ] |
| | | } |
| | |
| | | /** |
| | | * 流域 |
| | | */ |
| | | import { PIPELINE_WFS } from '../Constants' |
| | | const WFS_URL = PIPELINE_WFS |
| | | export const LayerBasin = { |
| | | code: 'sewersBasin', |
| | | name: '区域图层', |
| | |
| | | code: 'basinCj', |
| | | name: '长江流域', |
| | | sname: '长江流域', // 表名 |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | url: WFS_URL + '?TYPENAME=公司' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'basinHh', |
| | | name: '黄河流域', |
| | | sname: '黄河流域', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=码头' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'basinBh', |
| | | name: '渤海流域', |
| | | sname: '渤海流域', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=装置区' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'basinQt', |
| | | name: '其他', |
| | | sname: '其他', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=装置区' |
| | | checked: true |
| | | } |
| | | ] |
| | | } |
| | |
| | | /** |
| | | * 环境风险 |
| | | */ |
| | | import { PIPELINE_WFS } from '../Constants' |
| | | const WFS_URL = PIPELINE_WFS |
| | | export const LayerEnvRisk = { |
| | | code: 'sewersEnvRisk', |
| | | name: '环境风险', |
| | |
| | | name: '风险统计图', |
| | | sname: '风险统计图', // 表名 |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | url: WFS_URL + '?TYPENAME=公司', |
| | | color: '' |
| | | }, |
| | | { |
| | |
| | | name: '物资库', |
| | | sname: '物资库', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | wfs: WFS_URL + '?TYPENAME=码头', |
| | | color: '' |
| | | }, |
| | | { |
| | |
| | | name: '重大风险', |
| | | sname: '重大风险', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | wfs: WFS_URL + '?TYPENAME=装置区', |
| | | minZoom: 10, |
| | | color: 'red' |
| | | }, |
| | |
| | | /** |
| | | * 板块 |
| | | */ |
| | | import { PIPELINE_WFS } from '../Constants' |
| | | const WFS_URL = PIPELINE_WFS |
| | | export const LayerPlate = { |
| | | code: 'sewersPlate', |
| | | name: '板块图层', |
| | |
| | | code: 'plateYt', |
| | | name: '油田', |
| | | sname: '油田', // 表名 |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | url: WFS_URL + '?TYPENAME=公司' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'plateLh', |
| | | name: '炼化', |
| | | sname: '炼化', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=码头' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'plateXs', |
| | | name: '销售', |
| | | sname: '销售', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=装置区' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'plateHg', |
| | | name: '化工', |
| | | sname: '化工', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=装置区' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'plateZy', |
| | | name: '专业公司', |
| | | sname: '专业公司科研机构', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=装置区' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'plateKyjg', |
| | | name: '科研机构', |
| | | sname: '科研机构', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=装置区' |
| | | checked: true |
| | | }, |
| | | { |
| | | code: 'plateGcdw', |
| | | name: '工程单位', |
| | | sname: '工程单位', |
| | | checked: true, // 默认选中状态 |
| | | type: 2, |
| | | wfs: WFS_URL + '?TYPENAME=装置区' |
| | | checked: true |
| | | } |
| | | ] |
| | | } |
| | |
| | | /** |
| | | * 土壤及地下水 |
| | | */ |
| | | import { PIPELINE_WFS } from '../Constants' |
| | | const WFS_URL = PIPELINE_WFS |
| | | export const LayerSoilGroundWater = { |
| | | code: 'sewersSoilGroundWater', |
| | | name: '土壤及地下水', |
| | |
| | | code: 'soil', |
| | | name: '土壤', |
| | | sname: '土壤', // 表名 |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | url: WFS_URL + '?TYPENAME=公司' |
| | | checked: false |
| | | }, |
| | | { |
| | | code: 'groundWater', |
| | | name: '地下水', |
| | | sname: '地下水', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | wfs: WFS_URL + '?TYPENAME=码头' |
| | | checked: false |
| | | }, |
| | | { |
| | | code: 'firstRiskBlock', |
| | | name: '一级风险地块', |
| | | sname: '一级风险地块', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | wfs: WFS_URL + '?TYPENAME=装置区', |
| | | checked: false, |
| | | color: 'red' |
| | | }, |
| | | { |
| | | code: 'secondRiskBlock', |
| | | name: '二级风险地块', |
| | | sname: '二级风险地块', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | wfs: WFS_URL + '?TYPENAME=装置区', |
| | | checked: false, |
| | | color: 'yellow' |
| | | }, |
| | | { |
| | | code: 'threeRiskBlock', |
| | | name: '三级风险地块', |
| | | sname: '三级风险地块', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | wfs: WFS_URL + '?TYPENAME=装置区', |
| | | checked: false, |
| | | color: 'green' |
| | | } |
| | | ] |