| | |
| | | }, |
| | | "dependencies": { |
| | | "@jiaminghi/data-view": "^2.10.0", |
| | | "@turf/turf": "^6.3.0", |
| | | "audit": "0.0.6", |
| | | "axios": "^0.21.1", |
| | | "babel-polyfill": "^6.26.0", |
| | |
| | | <meta name="viewport" content="width=device-width"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=11"> |
| | | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
| | | <title><%= htmlWebpackPlugin.options.title %></title> |
| | | <title>中国石化环保一张图</title> |
| | | </head> |
| | | <body> |
| | | <noscript> |
| | |
| | | if (filters.length > 0) { |
| | | params.CQL_FILTER = filters.join(' AND ') |
| | | } |
| | | console.log(centerPoint) |
| | | loadPointWfs(centerPoint, params) |
| | | } |
| | | |
| | |
| | | if (type === 'Point') { |
| | | return [coordinates[1], coordinates[0]] |
| | | } else { |
| | | const center = L.geoJSON(feature, {}).getBounds().getCenter() |
| | | return [center.lat, center.lng] |
| | | return L.geoJSON(feature, {}).getBounds().getSouthWest() |
| | | // return [center.lat, center.lng] |
| | | |
| | | // return turf.centerOfMass(L.geoJSON(feature, {}).toGeoJSON()) |
| | | } |
| | | } |
| | | |
| | |
| | | hospital: '医院', |
| | | emergencyres: '社会专业应急救援队伍', |
| | | emergencyesources: '应急物资', |
| | | firefightingunit: '消防单位' |
| | | firefightingunit: '消防单位', |
| | | unitareaboundary: '装置区边界' |
| | | } |
| | | |
| | | export const LAYERPROPS = { |
| | | // 管网 |
| | | pipenetwork: { |
| | | // 管网 |
| | | name: '名称', |
| | | linenumtype: '管线类型', |
| | | pipename: '管线名称', |
| | | name: '管网名称', |
| | | linenumtype: '管网类型', |
| | | pipename: '管网名称', |
| | | mediumtype: '输送介质', |
| | | length: '长度(m)', |
| | | startposname: '起点位置名称', |
| | |
| | | // 管线 |
| | | pipeline: { |
| | | // 管网 |
| | | name: '名称', |
| | | name: '管网名称', |
| | | linenumtype: '管线类型', |
| | | pipename: '管线名称', |
| | | mediumtype: '输送介质', |
| | |
| | | // 水体 |
| | | pointhydrology: { |
| | | name: '名称', |
| | | orgname: '企业名称', |
| | | telphonenumber: '联系方式', |
| | | velocityaverage: '年平均流速(m/s)', |
| | | erosiondepthavg: '年平均冲刷深度', |
| | |
| | | // 自然保护区 |
| | | pointpreservationzone: { |
| | | name: '名称', |
| | | orgname: '企业名称', |
| | | datasource: '数据来源', |
| | | type: '保护区类型', |
| | | structureoridsitearea: '占地面积', |
| | |
| | | // 医院 |
| | | hospital: { |
| | | companyname: '医院名称', |
| | | orgname: '企业名称', |
| | | telephone: '联系电话', |
| | | hospitalleaval: '医院资质等级', |
| | | maxinjurednumber: '可容纳伤员', |
| | |
| | | // 社会专业应急救援队伍 |
| | | emergencyres: { |
| | | name: '名称', |
| | | orgname: '企业名称', |
| | | numberteam: '救援人数', |
| | | rescueobject: '主要救援对象', |
| | | resperson: '负责人', |
| | |
| | | // 应急物资 |
| | | emergencyesources: { |
| | | resourcesname: '物资名称', |
| | | orgname: '企业名称', |
| | | resourcesnumber: '物资数量', |
| | | ownedstatus: '是否自有物资', |
| | | sourceschargestandard: '物资收费标准', |
| | |
| | | // 消防单位 |
| | | firefightingunit: { |
| | | companyname: '消防单位名称', |
| | | orgname: '企业名称', |
| | | pumpernumber: '消防车数量', |
| | | contacttelephone: '联系电话', |
| | | address: '单位地址', |
| | |
| | | ficroute: '交通路线', |
| | | distance: '距离', |
| | | datasource: '数据来源' |
| | | }, |
| | | // 装置区 |
| | | unitareaboundary: { |
| | | name: '装置区名称', |
| | | code: '装置区编码', |
| | | responsperson: '负责人', |
| | | startdate: '投用日期' |
| | | } |
| | | } |
| | |
| | | import { SERVICE_TYPE } from '../Constants' |
| | | |
| | | /** |
| | | * 区域 |
| | | */ |
| | |
| | | name: '公司', |
| | | sname: '公司', // 表名 |
| | | checked: true, // 默认选中状态 |
| | | type: 0, |
| | | icon: 'sewers/.png', |
| | | legendImage: '../.././assets/images/map/company_refining.png' |
| | | }, |
| | |
| | | name: '码头', |
| | | sname: '码头', |
| | | checked: false, // 默认选中状态 |
| | | type: 0, |
| | | icon: 'sewers/码头.png', |
| | | legendImage: '../.././assets/images/map/sewers/码头.png' |
| | | }, |
| | |
| | | code: 'sewersAreaZz', |
| | | name: '装置区', |
| | | sname: '装置区', |
| | | type: SERVICE_TYPE.WMS, |
| | | checked: false, // 默认选中状态 |
| | | icon: 'sewers/.png', |
| | | typeName: 'sewer:unitareaboundary' |