| | |
| | | import * as L from 'leaflet' |
| | | |
| | | const APP_GIS_HOST_2 = 'http://xearth.cn:6230' |
| | | const myRenderer = L.canvas()// 需要使用画布渲染的使用 renderer: myRenderer 作为参数 |
| | | export const LayerSewers = { |
| | | import { GEOM_TYPE } from './Constants' |
| | | // const APP_GIS_HOST_2 = 'http://xearth.cn:6230' |
| | | const APP_GIS_HOST_2 = 'http://localhost:3000' |
| | | export const LayerSewersLine = { |
| | | code: 'pipeline', |
| | | name: '管网数据', |
| | | icon_actived: '', |
| | | icon_deactived: '', |
| | | type: 'geojson', |
| | | // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', |
| | | url: APP_GIS_HOST_2 + '/layer/findLayer?layerName=pipeline', |
| | | inLegend: true, |
| | | url: APP_GIS_HOST_2 + '/layer/findLayer?layerName={sname}', |
| | | checked: true, |
| | | option: { |
| | | styles: { |
| | | fill: true, |
| | | weight: 2, |
| | | fillColor: '#06cccc', |
| | | color: '#06cccc', |
| | | fillOpacity: 0.2, |
| | | opacity: 0.8 |
| | | // dashArray:'10,4', |
| | | // dashSpeed:-10, |
| | | }, |
| | | renderer: myRenderer |
| | | |
| | | }, |
| | | layers: [ |
| | | { |
| | | code: 'rainline', |
| | | name: '雨水线', |
| | | sname: '雨水', |
| | | sname: 'pipeline', // 表名 |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | zoom: 10, // 在指定级别显示 |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | |
| | | } |
| | | ] |
| | | } |
| | | |
| | | export const LayerSewersPoint = [ |
| | | { |
| | | code: 'fsss', |
| | | name: '附属设施', |
| | | checked: false, // 默认选中状态 |
| | | filters: [ |
| | | { |
| | | code: 'fourlink', |
| | | name: '四通', |
| | | sname: 'FourLink', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'tee', |
| | | name: '三通', |
| | | sname: 'Tee', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'piperack', |
| | | name: '管架(墩)', |
| | | sname: 'PipeRack', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pipegallery', |
| | | name: '管廊(带)', |
| | | sname: 'PipeGallery', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pipesegment', |
| | | name: '流向', |
| | | sname: 'ywslx', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pipeline', |
| | | name: '管网', |
| | | sname: 'pipeline', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'valve', |
| | | name: '阀门', |
| | | sname: 'valve', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'elbow', |
| | | name: '弯头', |
| | | sname: 'Elbow', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | code: 'hbss', |
| | | name: '环保设施', |
| | | checked: false, // 默认选中状态 |
| | | filters: [ |
| | | { |
| | | code: 'manhole', |
| | | name: '窨井', |
| | | sname: '窨井', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'firedike', |
| | | name: '防火堤', |
| | | sname: '防火堤', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'raingate', |
| | | name: '雨篦子', |
| | | sname: '雨篦子', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'overflowweir', |
| | | name: '溢流堰', |
| | | sname: '溢流堰', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'chokevalve', |
| | | name: '截流闸', |
| | | sname: '截流闸', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'collectingbasin', |
| | | name: '集水池(罐)', |
| | | sname: '集水池', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'oilseparator', |
| | | name: '隔油池', |
| | | sname: '隔油池', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | code: 'pk', |
| | | name: '排口', |
| | | checked: false, // 默认选中状态 |
| | | filters: [ |
| | | { |
| | | code: 'dischargeport', |
| | | name: '排放口', |
| | | sname: '排放口', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | code: 'qyxx', |
| | | name: '区域信息', |
| | | checked: false, // 默认选中状态 |
| | | filters: [ |
| | | { |
| | | code: 'thirdpartypipe', |
| | | name: '第三方管道', |
| | | sname: '第三方管道', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'firefightingunit', |
| | | name: '消防单位', |
| | | sname: '消防单位', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'emergencyesources', |
| | | name: '应急物资', |
| | | sname: '应急物资', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'emergencyres', |
| | | name: '社会专业应急救援队伍', |
| | | sname: '专业应急救援', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'maintenanceteam', |
| | | name: '维抢修队伍', |
| | | sname: '维抢修队伍', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'hospital', |
| | | name: '医院', |
| | | sname: '医院', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pointpreservationzone', |
| | | name: '自然保护区', |
| | | sname: '自然保护区', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pointhydrology', |
| | | name: '水体', |
| | | sname: '水体', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'sensitivetarget', |
| | | name: '敏感目标', |
| | | sname: '敏感目标', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'envmonunit', |
| | | name: '环境监测单位', |
| | | sname: '环境监测单位', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pointcontaminants', |
| | | name: '监测点污染物指标信息', |
| | | sname: '污染物指标', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'dischargeportaround', |
| | | name: '排放口周边环境敏感信息', |
| | | sname: '排放口周边环境', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pump', |
| | | name: '泵', |
| | | sname: '泵', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'liquidlevelmeter', |
| | | name: '液位计', |
| | | sname: '液位计', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'flowmeter', |
| | | name: '流量计', |
| | | sname: '流量计', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'video', |
| | | name: '视频监控配置', |
| | | sname: '视频监控', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'onlinemonitoring', |
| | | name: '在线监测设备配置', |
| | | sname: '在线监测', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'combustiblegas', |
| | | name: '可燃气体报警设备配置', |
| | | sname: '可燃气体报警', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'hydrogensulfide', |
| | | name: 'H2S浓度报警设备配置', |
| | | sname: 'H2S浓度报警', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'controlpoint', |
| | | name: '管线点', |
| | | sname: '管线点', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | }, |
| | | { |
| | | code: 'pipesegment', |
| | | name: '管段', |
| | | sname: '管段', |
| | | checked: false, |
| | | geomtype: GEOM_TYPE.POINT |
| | | } |
| | | ] |
| | | } |
| | | ] |