| | |
| | | this.params = { |
| | | version: '1.0.0', |
| | | REQUEST: 'getfeature', |
| | | OUTPUTFORMAT: 'json', |
| | | maxFeatures: 20000 |
| | | OUTPUTFORMAT: 'json' |
| | | // maxFeatures: 20000 |
| | | } |
| | | this.popupComp = window.popupComp |
| | | this.L = window.L |
| | |
| | | |
| | | draw (features) { |
| | | const icon = this.config.icon |
| | | const styles = this.config.styles |
| | | Object.assign(STYLES, styles) |
| | | const geojsonLayer = this.L.geoJSON(features, { |
| | | style: function (feature) { |
| | | return { |
| | |
| | | POLYGON: 'polygon' |
| | | } |
| | | |
| | | export const PIPELINE_WFS = 'http://xearth.cn:8088/server/ogcserver/PipeLine/wfs' |
| | | export const PIPELINE_WFS = 'http://xearth.cn:8088/server/ogcserver/PipeLine2/wfs' |
| | | |
| | | export const logicMapper = { |
| | | wasteGasPfk: 'WasteGas.js', |
| | |
| | | export const STYLES = { |
| | | FILL: true, |
| | | WEIGHT: 3, |
| | | FILL_COLOR: '#73b2ff', |
| | | FILL_COLOR: '#0070ff', |
| | | COLOR: '#73b2ff', |
| | | FILL_OPACITY: 0.2, |
| | | OPACITY: 1, |
| | |
| | | name: '管段', |
| | | sname: '管段', |
| | | checked: false, |
| | | minZoom: 15, |
| | | wfs: WFS_URL + '?TYPENAME=管段' |
| | | wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipesegment&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=orgname=\'巴陵石化\'' |
| | | }, |
| | | { |
| | | code: 'fourlink', |
| | | name: '四通', |
| | | sname: '四通', |
| | | checked: true, |
| | | minZoom: 15, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=四通', |
| | | icon: 'sewers/四通.png' |
| | | }, |
| | |
| | | name: '三通', |
| | | sname: '三通', |
| | | checked: false, |
| | | minZoom: 15, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=三通', |
| | | icon: 'sewers/三通.png' |
| | | }, |
| | |
| | | code: 'piperack', |
| | | name: '管架(墩)', |
| | | sname: 'PipeRack', |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=管架', |
| | | checked: false |
| | | }, |
| | |
| | | code: 'pipegallery', |
| | | name: '管廊(带)', |
| | | sname: 'PipeGallery', |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=管廊', |
| | | checked: false |
| | | }, |
| | |
| | | code: 'elbow', |
| | | name: '弯头', |
| | | sname: '弯头', |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=弯头', |
| | | icon: 'sewers/弯头.png' |
| | |
| | | name: '窨井', |
| | | sname: '窨井', |
| | | checked: true, |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=窨井', |
| | | icon: 'sewers/窨井.png' |
| | | }, |
| | |
| | | name: '雨篦子', |
| | | sname: '雨篦子', |
| | | checked: false, |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=雨篦子', |
| | | icon: 'sewers/雨篦子.png' |
| | | }, |
| | |
| | | code: 'fht', |
| | | name: '防火堤', |
| | | sname: '防火堤', |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=防火堤', |
| | | checked: false |
| | | }, |
| | |
| | | code: 'jsc', |
| | | name: '集水池', |
| | | sname: '集水池', |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=集水池', |
| | | checked: false, |
| | | icon: 'sewers/集水池.png' |
| | |
| | | code: 'yly', |
| | | name: '溢流堰', |
| | | sname: '溢流堰', |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | wfs: WFS_URL + '?TYPENAME=溢流堰', |
| | | checked: false |
| | | }, |
| | |
| | | code: 'gyd', |
| | | name: '隔油池', |
| | | sname: '隔油池', |
| | | minZoom: 10, |
| | | minZoom: 16, |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=隔油池', |
| | | icon: 'sewers/隔油池.png' |
| | |
| | | name: '雨水线', |
| | | sname: '管网', |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=管网', |
| | | minZoom: 10, |
| | | icon: 'sewers/雨水线.png' |
| | | // wfs: WFS_URL + '?TYPENAME=管网&FILTER=<Filter xmlns="http://www.opengis.net/ogc"><PropertyIsEqualTo><PropertyName>mediumtype</PropertyName><Literal>雨水管线</Literal></PropertyIsEqualTo></Filter>', |
| | | wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=linenumtype=\'雨水管线\'', |
| | | icon: 'sewers/雨水线.png', |
| | | color: '#0070ff', |
| | | minZoom: 13, |
| | | styles: { |
| | | COLOR: '#0070ff', |
| | | FILL_COLOR: '#0070ff' |
| | | } |
| | | }, |
| | | { |
| | | code: 'accidentline', |
| | | name: '事故水线', |
| | | sname: '事故水', |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=事故水', |
| | | minZoom: 10 |
| | | minZoom: 13, |
| | | wfs: WFS_URL + '?TYPENAME=事故水' |
| | | }, |
| | | { |
| | | code: 'oilline', |
| | | name: '含油污水线', |
| | | sname: '含油污水', |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=含油污水', |
| | | minZoom: 10 |
| | | minZoom: 13, |
| | | color: '#ffaa00', |
| | | wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=mediumtype=\'含油污水\'', |
| | | styles: { |
| | | COLOR: '#ffaa00', |
| | | FILL_COLOR: '#ffaa00' |
| | | } |
| | | }, |
| | | { |
| | | code: 'saltline', |
| | | name: '含盐污水线', |
| | | sname: '含盐污水', |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=含盐污水', |
| | | minZoom: 10 |
| | | minZoom: 13, |
| | | wfs: WFS_URL + '?TYPENAME=含盐污水' |
| | | }, |
| | | { |
| | | code: 'alkaliline', |
| | |
| | | name: '生活污水', |
| | | sname: '生活污水', |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=生活污水', |
| | | minZoom: 10 |
| | | minZoom: 13, |
| | | wfs: WFS_URL + '?TYPENAME=生活污水' |
| | | }, |
| | | { |
| | | code: 'purifyline', |
| | | name: '净化水线', |
| | | sname: '净化水', |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=净化水', |
| | | minZoom: 10 |
| | | minZoom: 13, |
| | | wfs: WFS_URL + '?TYPENAME=净化水' |
| | | }, |
| | | { |
| | | code: 'loopline', |
| | | name: '循环水线', |
| | | sname: '循环水', |
| | | checked: false, |
| | | wfs: WFS_URL + '?TYPENAME=循环水', |
| | | minZoom: 10 |
| | | minZoom: 13, |
| | | wfs: WFS_URL + '?TYPENAME=循环水' |
| | | }, |
| | | { |
| | | code: 'buildline', |
| | | name: '生产污水', |
| | | sname: '生产污水', |
| | | checked: false, |
| | | minZoom: 13, |
| | | color: '#a8a800', |
| | | wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=mediumtype=\'生产污水\'', |
| | | styles: { |
| | | COLOR: '#a8a800', |
| | | FILL_COLOR: '#a8a800' |
| | | } |
| | | } |
| | | ] |
| | | } |