@vtx/cs-map-layer 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +40 -40
- package/lib/ConfluenceLineLayer/index.d.ts +4 -0
- package/lib/ConfluenceLineLayer/index.js +51 -0
- package/lib/ConfluenceManholeLayer/index.d.ts +4 -0
- package/lib/ConfluenceManholeLayer/index.js +51 -0
- package/lib/ConfluencePointLayer/index.d.ts +4 -0
- package/lib/ConfluencePointLayer/index.js +51 -0
- package/lib/DeviceLayer/index.d.ts +11 -0
- package/lib/DeviceLayer/index.js +155 -0
- package/lib/DivisionLayer/index.d.ts +4 -0
- package/lib/DivisionLayer/index.js +26 -0
- package/lib/FacilityLayer/index.d.ts +13 -0
- package/lib/FacilityLayer/index.js +75 -0
- package/lib/Layer/index.d.ts +5 -0
- package/lib/Layer/index.js +105 -0
- package/lib/Layer/layerConfig.d.ts +82 -0
- package/lib/Layer/layerConfig.js +370 -0
- package/lib/RainLineLayer/index.d.ts +4 -0
- package/lib/RainLineLayer/index.js +54 -0
- package/lib/RainManholeLayer/index.d.ts +4 -0
- package/lib/RainManholeLayer/index.js +54 -0
- package/lib/RainPointLayer/index.d.ts +4 -0
- package/lib/RainPointLayer/index.js +54 -0
- package/lib/RawWaterLineLayer/index.d.ts +4 -0
- package/lib/RawWaterLineLayer/index.js +63 -0
- package/lib/RawWaterPointLayer/index.d.ts +4 -0
- package/lib/RawWaterPointLayer/index.js +63 -0
- package/lib/SewageLineLayer/index.d.ts +4 -0
- package/lib/SewageLineLayer/index.js +51 -0
- package/lib/SewageManholeLayer/index.d.ts +4 -0
- package/lib/SewageManholeLayer/index.js +51 -0
- package/lib/SewagePointLayer/index.d.ts +4 -0
- package/lib/SewagePointLayer/index.js +51 -0
- package/lib/WaterDrainLineLayer/index.d.ts +4 -0
- package/lib/WaterDrainLineLayer/index.js +50 -0
- package/lib/WaterDrainManholeLayer/index.d.ts +4 -0
- package/lib/WaterDrainManholeLayer/index.js +50 -0
- package/lib/WaterDrainPointLayer/index.d.ts +4 -0
- package/lib/WaterDrainPointLayer/index.js +50 -0
- package/lib/WaterSupplyLineLayer/index.d.ts +4 -0
- package/lib/WaterSupplyLineLayer/index.js +97 -0
- package/lib/WaterSupplyPointLayer/index.d.ts +8 -0
- package/lib/WaterSupplyPointLayer/index.js +85 -0
- package/lib/_components/Template/CloseBtn.d.ts +8 -0
- package/lib/_components/Template/CloseBtn.js +21 -0
- package/lib/_components/Template/CloseBtnV2.d.ts +8 -0
- package/lib/_components/Template/CloseBtnV2.js +24 -0
- package/lib/_components/Template/DeviceCustomContent.d.ts +21 -0
- package/lib/_components/Template/DeviceCustomContent.js +96 -0
- package/lib/_components/Template/DeviceTemplate.d.ts +7 -0
- package/lib/_components/Template/DeviceTemplate.js +81 -0
- package/lib/_components/Template/DeviceTemplateV2.d.ts +7 -0
- package/lib/_components/Template/DeviceTemplateV2.js +151 -0
- package/lib/_components/Template/FacilityCustomContent.d.ts +21 -0
- package/lib/_components/Template/FacilityCustomContent.js +171 -0
- package/lib/_components/Template/FacilityTemplate.d.ts +13 -0
- package/lib/_components/Template/FacilityTemplate.js +115 -0
- package/lib/_components/Template/FacilityTemplateV2.d.ts +14 -0
- package/lib/_components/Template/FacilityTemplateV2.js +119 -0
- package/lib/_components/Template/index.less +15 -0
- package/lib/_components/Template/indexV2.less +589 -0
- package/lib/_util/http.d.ts +42 -0
- package/lib/_util/http.js +161 -0
- package/lib/_util/interface.d.ts +389 -0
- package/lib/_util/interface.js +110 -0
- package/lib/_util/layerConfig.d.ts +39 -0
- package/lib/_util/layerConfig.js +779 -0
- package/lib/_util/transform.d.ts +1 -0
- package/lib/_util/transform.js +111 -0
- package/lib/_util/util.d.ts +2 -0
- package/lib/_util/util.js +24 -0
- package/lib/assets/address-dark.png +0 -0
- package/lib/assets/address.png +0 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.js +22 -0
- package/lib/typings.d.ts +4 -0
- package/package.json +2 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
var _excluded = ["type"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
6
|
+
/*
|
|
7
|
+
* @description: 排水-雨水管线图层
|
|
8
|
+
*/
|
|
9
|
+
import { FeatureLayer, GroupLayer, ImageLayer } from '@vtx/cs-map';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import ConfluenceLineLayer from "../ConfluenceLineLayer";
|
|
12
|
+
import ConfluenceManholeLayer from "../ConfluenceManholeLayer";
|
|
13
|
+
import ConfluencePointLayer from "../ConfluencePointLayer";
|
|
14
|
+
import DeviceLayer from "../DeviceLayer";
|
|
15
|
+
import DivisionLayer from "../DivisionLayer";
|
|
16
|
+
import FacilityLayer from "../FacilityLayer";
|
|
17
|
+
import RainLineLayer from "../RainLineLayer";
|
|
18
|
+
import RainManholeLayer from "../RainManholeLayer";
|
|
19
|
+
import RainPointLayer from "../RainPointLayer";
|
|
20
|
+
import RawWaterLineLayer from "../RawWaterLineLayer";
|
|
21
|
+
import RawWaterPointLayer from "../RawWaterPointLayer";
|
|
22
|
+
import SewageLineLayer from "../SewageLineLayer";
|
|
23
|
+
import SewageManholeLayer from "../SewageManholeLayer";
|
|
24
|
+
import SewagePointLayer from "../SewagePointLayer";
|
|
25
|
+
import WaterDrainLineLayer from "../WaterDrainLineLayer";
|
|
26
|
+
import WaterDrainManholeLayer from "../WaterDrainManholeLayer";
|
|
27
|
+
import WaterDrainPointLayer from "../WaterDrainPointLayer";
|
|
28
|
+
import WaterSupplyLineLayer from "../WaterSupplyLineLayer";
|
|
29
|
+
import WaterSupplyPointLayer from "../WaterSupplyPointLayer";
|
|
30
|
+
var COMPONENT = {
|
|
31
|
+
FacilityLayer: FacilityLayer,
|
|
32
|
+
DeviceLayer: DeviceLayer,
|
|
33
|
+
WaterDrainPointLayer: WaterDrainPointLayer,
|
|
34
|
+
WaterDrainLineLayer: WaterDrainLineLayer,
|
|
35
|
+
WaterSupplyPointLayer: WaterSupplyPointLayer,
|
|
36
|
+
WaterSupplyLineLayer: WaterSupplyLineLayer,
|
|
37
|
+
RawWaterPointLayer: RawWaterPointLayer,
|
|
38
|
+
RawWaterLineLayer: RawWaterLineLayer,
|
|
39
|
+
DivisionLayer: DivisionLayer,
|
|
40
|
+
WaterDrainManholeLayer: WaterDrainManholeLayer,
|
|
41
|
+
RainPointLayer: RainPointLayer,
|
|
42
|
+
RainLineLayer: RainLineLayer,
|
|
43
|
+
RainManholeLayer: RainManholeLayer,
|
|
44
|
+
SewagePointLayer: SewagePointLayer,
|
|
45
|
+
SewageLineLayer: SewageLineLayer,
|
|
46
|
+
SewageManholeLayer: SewageManholeLayer,
|
|
47
|
+
ConfluencePointLayer: ConfluencePointLayer,
|
|
48
|
+
ConfluenceLineLayer: ConfluenceLineLayer,
|
|
49
|
+
ConfluenceManholeLayer: ConfluenceManholeLayer,
|
|
50
|
+
CustomImageLayer: ImageLayer,
|
|
51
|
+
CustomFeatureLayer: FeatureLayer
|
|
52
|
+
};
|
|
53
|
+
var ItemLayer = function ItemLayer(props) {
|
|
54
|
+
var type = props.type,
|
|
55
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
56
|
+
if (COMPONENT[type]) {
|
|
57
|
+
var Component = COMPONENT[type];
|
|
58
|
+
return /*#__PURE__*/React.createElement(Component, otherProps);
|
|
59
|
+
}
|
|
60
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
61
|
+
};
|
|
62
|
+
var ItemGroupLayer = function ItemGroupLayer(props) {
|
|
63
|
+
var name = props.name,
|
|
64
|
+
id = props.id,
|
|
65
|
+
children = props.children,
|
|
66
|
+
_index = props._index;
|
|
67
|
+
return /*#__PURE__*/React.createElement(GroupLayer, {
|
|
68
|
+
name: name,
|
|
69
|
+
id: id
|
|
70
|
+
}, (children === null || children === void 0 ? void 0 : children.length) > 0 ? /*#__PURE__*/React.createElement(LayerTree, {
|
|
71
|
+
data: children,
|
|
72
|
+
_index: _index
|
|
73
|
+
}) : null);
|
|
74
|
+
};
|
|
75
|
+
var LayerTree = function LayerTree(props) {
|
|
76
|
+
var data = props.data,
|
|
77
|
+
_index = props._index;
|
|
78
|
+
return (data === null || data === void 0 ? void 0 : data.length) > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, data.map(function (item, i) {
|
|
79
|
+
var _item$children;
|
|
80
|
+
var key = "".concat(_index, "_").concat(i);
|
|
81
|
+
if ((item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0) {
|
|
82
|
+
return /*#__PURE__*/React.createElement(ItemGroupLayer, _extends({}, item, {
|
|
83
|
+
key: key,
|
|
84
|
+
_index: key
|
|
85
|
+
}));
|
|
86
|
+
} else {
|
|
87
|
+
return /*#__PURE__*/React.createElement(ItemLayer, _extends({}, item, {
|
|
88
|
+
key: key,
|
|
89
|
+
_index: _index
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
})) : null;
|
|
93
|
+
};
|
|
94
|
+
var Layer = function Layer(props) {
|
|
95
|
+
var _props$data = props.data,
|
|
96
|
+
data = _props$data === void 0 ? [] : _props$data;
|
|
97
|
+
if (data !== null && data !== void 0 && data.length) {
|
|
98
|
+
return /*#__PURE__*/React.createElement(LayerTree, {
|
|
99
|
+
data: data,
|
|
100
|
+
_index: "layer"
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
104
|
+
};
|
|
105
|
+
export default Layer;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare const layerConfig: ({
|
|
2
|
+
name: string;
|
|
3
|
+
id: string;
|
|
4
|
+
children: ({
|
|
5
|
+
type: string;
|
|
6
|
+
id: string;
|
|
7
|
+
popup: {
|
|
8
|
+
version: string;
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
type: string;
|
|
12
|
+
id: string;
|
|
13
|
+
popup?: undefined;
|
|
14
|
+
})[];
|
|
15
|
+
show?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
name: string;
|
|
18
|
+
id: string;
|
|
19
|
+
show: boolean;
|
|
20
|
+
children: {
|
|
21
|
+
type: string;
|
|
22
|
+
show: boolean;
|
|
23
|
+
}[];
|
|
24
|
+
} | {
|
|
25
|
+
name: string;
|
|
26
|
+
id: string;
|
|
27
|
+
show: boolean;
|
|
28
|
+
children: {
|
|
29
|
+
type: string;
|
|
30
|
+
name: string;
|
|
31
|
+
key: string;
|
|
32
|
+
code: string;
|
|
33
|
+
show: boolean;
|
|
34
|
+
params: {
|
|
35
|
+
STYLES: string;
|
|
36
|
+
};
|
|
37
|
+
group: {
|
|
38
|
+
name: string;
|
|
39
|
+
key: string;
|
|
40
|
+
filter: string;
|
|
41
|
+
show: boolean;
|
|
42
|
+
legend: {
|
|
43
|
+
icon: string;
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
}[];
|
|
47
|
+
}[];
|
|
48
|
+
} | {
|
|
49
|
+
name: string;
|
|
50
|
+
id: string;
|
|
51
|
+
show: boolean;
|
|
52
|
+
children: ({
|
|
53
|
+
type: string;
|
|
54
|
+
code: string;
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
show: boolean;
|
|
58
|
+
params: {
|
|
59
|
+
key: string;
|
|
60
|
+
operator: string;
|
|
61
|
+
value: number;
|
|
62
|
+
};
|
|
63
|
+
styleOption: {
|
|
64
|
+
icon: string;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
type: string;
|
|
68
|
+
code: string;
|
|
69
|
+
id: string;
|
|
70
|
+
show: boolean;
|
|
71
|
+
name: string;
|
|
72
|
+
params: {
|
|
73
|
+
key: string;
|
|
74
|
+
operator: string;
|
|
75
|
+
value: string;
|
|
76
|
+
};
|
|
77
|
+
styleOption: {
|
|
78
|
+
icon: string;
|
|
79
|
+
};
|
|
80
|
+
})[];
|
|
81
|
+
})[];
|
|
82
|
+
export default layerConfig;
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
/* type:类型 FacilityLayer-设施 DeviceLayer-设备 排水管点-WaterDrainPointLayer 排水管线-WaterDrainLineLayer 排水窨井-WaterSupplyPointLayer
|
|
2
|
+
视频-VideoLayer 行政区划-DivisionLayer 排水-雨水-管点-RainPointLayer 排水-雨水-管线-RainLineLayer 排水-雨水-窨井-RainManholeLayer
|
|
3
|
+
排水-污水-管点-SewagePointLayer 排水-污水-管线-SewageLineLayer 排水-污水-窨井-SewageManholeLayer 排水-合流-管点-ConfluencePointLayer
|
|
4
|
+
排水-合流-管线-ConfluenceLineLayer 排水-合流-窨井-ConfluenceManholeLayer 供水-管点-WaterSupplyPointLayer 供水-管线-WaterSupplyLineLayer
|
|
5
|
+
原水-管点-RawWaterPointLayer 原水-管线-RawWaterLineLayer
|
|
6
|
+
自定义图层-CustomLayer
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
var layerConfig = [{
|
|
10
|
+
"name": "管网类型",
|
|
11
|
+
"id": "GWLX",
|
|
12
|
+
"children": [{
|
|
13
|
+
"type": "SewageLineLayer",
|
|
14
|
+
"id": "WSGW",
|
|
15
|
+
"popup": {
|
|
16
|
+
"version": "2"
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
"type": "RainLineLayer",
|
|
20
|
+
"id": "YSGW"
|
|
21
|
+
}, {
|
|
22
|
+
"type": "ConfluenceLineLayer",
|
|
23
|
+
"id": "YWHL"
|
|
24
|
+
}]
|
|
25
|
+
}, {
|
|
26
|
+
"name": "窨井",
|
|
27
|
+
"id": "YJ",
|
|
28
|
+
"show": false,
|
|
29
|
+
"children": [{
|
|
30
|
+
"type": "SewageManholeLayer",
|
|
31
|
+
"show": false
|
|
32
|
+
}, {
|
|
33
|
+
"type": "RainManholeLayer",
|
|
34
|
+
"show": false
|
|
35
|
+
}, {
|
|
36
|
+
"type": "ConfluenceManholeLayer",
|
|
37
|
+
"show": false
|
|
38
|
+
}]
|
|
39
|
+
}, {
|
|
40
|
+
"name": "管点",
|
|
41
|
+
"id": "GD",
|
|
42
|
+
"show": false,
|
|
43
|
+
"children": [{
|
|
44
|
+
"type": "RainPointLayer",
|
|
45
|
+
"name": "雨水管点",
|
|
46
|
+
"key": "YSJ",
|
|
47
|
+
"code": "YSJ",
|
|
48
|
+
"show": false,
|
|
49
|
+
"params": {
|
|
50
|
+
"STYLES": "zhsw_point"
|
|
51
|
+
},
|
|
52
|
+
"group": [{
|
|
53
|
+
"name": "暗井",
|
|
54
|
+
"key": "YSGD_AJ",
|
|
55
|
+
"filter": "category = '1' and appendant = '40'",
|
|
56
|
+
"show": false,
|
|
57
|
+
"legend": {
|
|
58
|
+
"icon": "YJ_JG",
|
|
59
|
+
"color": "#00C159"
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
"name": "泵站",
|
|
63
|
+
"key": "YSGD_BZ",
|
|
64
|
+
"filter": "category = '1' and appendant = '1'",
|
|
65
|
+
"show": false,
|
|
66
|
+
"legend": {
|
|
67
|
+
"icon": "GD_BZ",
|
|
68
|
+
"color": "#00C159"
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
"name": "阀门",
|
|
72
|
+
"key": "YSGD_FMJ",
|
|
73
|
+
"show": false,
|
|
74
|
+
"filter": "category = '1' and appendant = '5'",
|
|
75
|
+
"legend": {
|
|
76
|
+
"icon": "GD_FMJ",
|
|
77
|
+
"color": "#00C159"
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
"name": "检查井",
|
|
81
|
+
"key": "YSGD_JCJ",
|
|
82
|
+
"show": false,
|
|
83
|
+
"filter": "category = '1' and appendant = '6'",
|
|
84
|
+
"legend": {
|
|
85
|
+
"icon": "GD_JCJ",
|
|
86
|
+
"color": "#00C159"
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
"name": "排水户",
|
|
90
|
+
"key": "YSGD_PSH",
|
|
91
|
+
"show": false,
|
|
92
|
+
"filter": "category = '1' and appendant = '25'",
|
|
93
|
+
"legend": {
|
|
94
|
+
"icon": "PSH",
|
|
95
|
+
"color": "#00C159"
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
"name": "污水厂",
|
|
99
|
+
"key": "YSGD_WSC",
|
|
100
|
+
"show": false,
|
|
101
|
+
"filter": "category = '1' and appendant = '17'",
|
|
102
|
+
"legend": {
|
|
103
|
+
"icon": "WSC",
|
|
104
|
+
"color": "#00C159"
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
"name": "雨水篦",
|
|
108
|
+
"key": "YSGD_BIZ",
|
|
109
|
+
"show": false,
|
|
110
|
+
"filter": "category = '1' and appendant = '22'",
|
|
111
|
+
"legend": {
|
|
112
|
+
"icon": "GD_BIZ",
|
|
113
|
+
"color": "#00C159"
|
|
114
|
+
}
|
|
115
|
+
}]
|
|
116
|
+
}, {
|
|
117
|
+
"type": "SewagePointLayer",
|
|
118
|
+
"name": "污水管点",
|
|
119
|
+
"key": "WSJ",
|
|
120
|
+
"code": "WSJ",
|
|
121
|
+
"show": false,
|
|
122
|
+
"params": {
|
|
123
|
+
"STYLES": "zhsw_point"
|
|
124
|
+
},
|
|
125
|
+
"group": [{
|
|
126
|
+
"name": "暗井",
|
|
127
|
+
"key": "WSGD_AJ",
|
|
128
|
+
"show": false,
|
|
129
|
+
"filter": "category = '2' and appendant = '40'",
|
|
130
|
+
"legend": {
|
|
131
|
+
"icon": "YJ_JG",
|
|
132
|
+
"color": "#ffa600"
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
"name": "泵站",
|
|
136
|
+
"key": "WSGD_BZ",
|
|
137
|
+
"show": false,
|
|
138
|
+
"filter": "category = '2' and appendant = '1'",
|
|
139
|
+
"legend": {
|
|
140
|
+
"icon": "GD_BZ",
|
|
141
|
+
"color": "#ffa600"
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
"name": "阀门",
|
|
145
|
+
"show": false,
|
|
146
|
+
"key": "WSGD_FMJ",
|
|
147
|
+
"filter": "category = '2' and appendant = '5'",
|
|
148
|
+
"legend": {
|
|
149
|
+
"icon": "GD_FMJ",
|
|
150
|
+
"color": "#ffa600"
|
|
151
|
+
}
|
|
152
|
+
}, {
|
|
153
|
+
"name": "检查井",
|
|
154
|
+
"key": "WSGD_JCJ",
|
|
155
|
+
"show": false,
|
|
156
|
+
"filter": "category = '2' and appendant = '6'",
|
|
157
|
+
"legend": {
|
|
158
|
+
"icon": "GD_JCJ",
|
|
159
|
+
"color": "#ffa600"
|
|
160
|
+
}
|
|
161
|
+
}, {
|
|
162
|
+
"name": "排水户",
|
|
163
|
+
"key": "WSGD_PSH",
|
|
164
|
+
"show": false,
|
|
165
|
+
"filter": "category = '2' and appendant = '25'",
|
|
166
|
+
"legend": {
|
|
167
|
+
"icon": "PSH",
|
|
168
|
+
"color": "#ffa600"
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
"name": "污水厂",
|
|
172
|
+
"key": "WSGD_WSC",
|
|
173
|
+
"show": false,
|
|
174
|
+
"filter": "category = '2' and appendant = '17'",
|
|
175
|
+
"legend": {
|
|
176
|
+
"icon": "WSC",
|
|
177
|
+
"color": "#ffa600"
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
"name": "雨水篦",
|
|
181
|
+
"key": "WSGD_BIZ",
|
|
182
|
+
"show": false,
|
|
183
|
+
"filter": "category = '2' and appendant = '22'",
|
|
184
|
+
"legend": {
|
|
185
|
+
"icon": "GD_BIZ",
|
|
186
|
+
"color": "#ffa600"
|
|
187
|
+
}
|
|
188
|
+
}]
|
|
189
|
+
}, {
|
|
190
|
+
"type": "ConfluencePointLayer",
|
|
191
|
+
"name": "合流管点",
|
|
192
|
+
"key": "HLJ",
|
|
193
|
+
"code": "HLJ",
|
|
194
|
+
"show": false,
|
|
195
|
+
"params": {
|
|
196
|
+
"STYLES": "zhsw_point"
|
|
197
|
+
},
|
|
198
|
+
"group": [{
|
|
199
|
+
"name": "暗井",
|
|
200
|
+
"key": "HLGD_AJ",
|
|
201
|
+
"show": false,
|
|
202
|
+
"filter": "category = '3' and appendant = '40'",
|
|
203
|
+
"legend": {
|
|
204
|
+
"icon": "YJ_JG",
|
|
205
|
+
"color": "#00c3ff"
|
|
206
|
+
}
|
|
207
|
+
}, {
|
|
208
|
+
"name": "泵站",
|
|
209
|
+
"key": "HLGD_BZ",
|
|
210
|
+
"show": false,
|
|
211
|
+
"filter": "category = '3' and appendant = '1'",
|
|
212
|
+
"legend": {
|
|
213
|
+
"icon": "GD_BZ",
|
|
214
|
+
"color": "#00c3ff"
|
|
215
|
+
}
|
|
216
|
+
}, {
|
|
217
|
+
"name": "阀门",
|
|
218
|
+
"show": false,
|
|
219
|
+
"key": "HLGD_FMJ",
|
|
220
|
+
"filter": "category = '3' and appendant = '5'",
|
|
221
|
+
"legend": {
|
|
222
|
+
"icon": "GD_FMJ",
|
|
223
|
+
"color": "#00c3ff"
|
|
224
|
+
}
|
|
225
|
+
}, {
|
|
226
|
+
"name": "检查井",
|
|
227
|
+
"key": "HLGD_JCJ",
|
|
228
|
+
"show": false,
|
|
229
|
+
"filter": "category = '3' and appendant = '6'",
|
|
230
|
+
"legend": {
|
|
231
|
+
"icon": "GD_JCJ",
|
|
232
|
+
"color": "#00c3ff"
|
|
233
|
+
}
|
|
234
|
+
}, {
|
|
235
|
+
"name": "排水户",
|
|
236
|
+
"key": "HLGD_PSH",
|
|
237
|
+
"show": false,
|
|
238
|
+
"filter": "category = '3' and appendant = '25'",
|
|
239
|
+
"legend": {
|
|
240
|
+
"icon": "PSH",
|
|
241
|
+
"color": "#00c3ff"
|
|
242
|
+
}
|
|
243
|
+
}, {
|
|
244
|
+
"name": "污水厂",
|
|
245
|
+
"key": "HLGD_WSC",
|
|
246
|
+
"show": false,
|
|
247
|
+
"filter": "category = '3' and appendant = '17'",
|
|
248
|
+
"legend": {
|
|
249
|
+
"icon": "WSC",
|
|
250
|
+
"color": "#00c3ff"
|
|
251
|
+
}
|
|
252
|
+
}, {
|
|
253
|
+
"name": "雨水篦",
|
|
254
|
+
"key": "HLGD_BIZ",
|
|
255
|
+
"show": false,
|
|
256
|
+
"filter": "category = '3' and appendant = '22'",
|
|
257
|
+
"legend": {
|
|
258
|
+
"icon": "GD_BIZ",
|
|
259
|
+
"color": "#00c3ff"
|
|
260
|
+
}
|
|
261
|
+
}]
|
|
262
|
+
}]
|
|
263
|
+
}, {
|
|
264
|
+
"name": "排水户",
|
|
265
|
+
"id": "LXPSH",
|
|
266
|
+
"show": false,
|
|
267
|
+
"children": [{
|
|
268
|
+
"type": "FacilityLayer",
|
|
269
|
+
"code": "sewerage_user",
|
|
270
|
+
"id": "ZDPSH",
|
|
271
|
+
"name": "非居民生活污水",
|
|
272
|
+
"show": false,
|
|
273
|
+
"params": {
|
|
274
|
+
"key": "drainageTypeId",
|
|
275
|
+
"operator": "=",
|
|
276
|
+
"value": 0
|
|
277
|
+
},
|
|
278
|
+
"styleOption": {
|
|
279
|
+
"icon": "PSH"
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
"type": "FacilityLayer",
|
|
283
|
+
"code": "sewerage_user",
|
|
284
|
+
"id": "CY",
|
|
285
|
+
"show": false,
|
|
286
|
+
"name": "餐饮污水",
|
|
287
|
+
"params": {
|
|
288
|
+
"key": "drainageTypeId",
|
|
289
|
+
"operator": "=",
|
|
290
|
+
"value": "1"
|
|
291
|
+
},
|
|
292
|
+
"styleOption": {
|
|
293
|
+
"icon": "CY"
|
|
294
|
+
}
|
|
295
|
+
}, {
|
|
296
|
+
"type": "FacilityLayer",
|
|
297
|
+
"code": "sewerage_user",
|
|
298
|
+
"id": "MRMF",
|
|
299
|
+
"show": false,
|
|
300
|
+
"name": "美容美发污水",
|
|
301
|
+
"params": {
|
|
302
|
+
"key": "drainageTypeId",
|
|
303
|
+
"operator": "=",
|
|
304
|
+
"value": "2"
|
|
305
|
+
},
|
|
306
|
+
"styleOption": {
|
|
307
|
+
"icon": "MRMF"
|
|
308
|
+
}
|
|
309
|
+
}, {
|
|
310
|
+
"type": "FacilityLayer",
|
|
311
|
+
"code": "sewerage_user",
|
|
312
|
+
"id": "XYU",
|
|
313
|
+
"show": false,
|
|
314
|
+
"name": "含沉淀物污水",
|
|
315
|
+
"params": {
|
|
316
|
+
"key": "drainageTypeId",
|
|
317
|
+
"operator": "=",
|
|
318
|
+
"value": "3"
|
|
319
|
+
},
|
|
320
|
+
"styleOption": {
|
|
321
|
+
"icon": "XYU"
|
|
322
|
+
}
|
|
323
|
+
}, {
|
|
324
|
+
"type": "FacilityLayer",
|
|
325
|
+
"code": "sewerage_user",
|
|
326
|
+
"id": "LG",
|
|
327
|
+
"show": false,
|
|
328
|
+
"name": "汽车修理污水",
|
|
329
|
+
"params": {
|
|
330
|
+
"key": "drainageTypeId",
|
|
331
|
+
"operator": "=",
|
|
332
|
+
"value": "6"
|
|
333
|
+
},
|
|
334
|
+
"styleOption": {
|
|
335
|
+
"icon": "LG"
|
|
336
|
+
}
|
|
337
|
+
}, {
|
|
338
|
+
"type": "FacilityLayer",
|
|
339
|
+
"code": "sewerage_user",
|
|
340
|
+
"id": "XY",
|
|
341
|
+
"show": false,
|
|
342
|
+
"name": "有毒有害污水",
|
|
343
|
+
"params": {
|
|
344
|
+
"key": "drainageTypeId",
|
|
345
|
+
"operator": "=",
|
|
346
|
+
"value": "4"
|
|
347
|
+
},
|
|
348
|
+
"styleOption": {
|
|
349
|
+
"icon": "XY"
|
|
350
|
+
}
|
|
351
|
+
}, {
|
|
352
|
+
"type": "FacilityLayer",
|
|
353
|
+
"code": "sewerage_user",
|
|
354
|
+
"id": "XC",
|
|
355
|
+
"show": false,
|
|
356
|
+
"name": "畜禽屠宰、肉类加工污水",
|
|
357
|
+
"params": {
|
|
358
|
+
"key": "drainageTypeId",
|
|
359
|
+
"operator": "=",
|
|
360
|
+
"value": "6"
|
|
361
|
+
},
|
|
362
|
+
"styleOption": {
|
|
363
|
+
"icon": "XC"
|
|
364
|
+
}
|
|
365
|
+
}]
|
|
366
|
+
}];
|
|
367
|
+
|
|
368
|
+
// 图层点击事件?
|
|
369
|
+
|
|
370
|
+
export default layerConfig;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["params", "showModal", "popup", "customButton"];
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
import { ImageLayer } from '@vtx/cs-map';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import FacilityTemplate from "../_components/Template/FacilityTemplate";
|
|
14
|
+
import FacilityTemplateV2 from "../_components/Template/FacilityTemplateV2";
|
|
15
|
+
import { getTenantId } from "../_util/util";
|
|
16
|
+
var RainLineLayer = function RainLineLayer(props) {
|
|
17
|
+
var _props$params = props.params,
|
|
18
|
+
params = _props$params === void 0 ? {} : _props$params,
|
|
19
|
+
showModal = props.showModal,
|
|
20
|
+
_props$popup = props.popup,
|
|
21
|
+
popup = _props$popup === void 0 ? {
|
|
22
|
+
version: '1'
|
|
23
|
+
} : _props$popup,
|
|
24
|
+
customButton = props.customButton,
|
|
25
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
26
|
+
var tenantId = getTenantId();
|
|
27
|
+
return /*#__PURE__*/React.createElement(ImageLayer, _extends({
|
|
28
|
+
url: "/geoserver/zhsw/wms",
|
|
29
|
+
params: _objectSpread({
|
|
30
|
+
typeName: 'zhsw:zhsw_line',
|
|
31
|
+
viewparams: "tenantId:".concat(tenantId),
|
|
32
|
+
cql_filter: "network_type= 1"
|
|
33
|
+
}, params),
|
|
34
|
+
name: "\u96E8\u6C34\u7BA1\u7EBF",
|
|
35
|
+
labelField: "code",
|
|
36
|
+
zIndex: 20,
|
|
37
|
+
id: 'RainLineLayer',
|
|
38
|
+
template: function template(feature) {
|
|
39
|
+
if (popup.version == '2') {
|
|
40
|
+
return /*#__PURE__*/React.createElement(FacilityTemplateV2, {
|
|
41
|
+
feature: feature,
|
|
42
|
+
showModal: showModal,
|
|
43
|
+
customButton: customButton
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/React.createElement(FacilityTemplate, {
|
|
47
|
+
feature: feature,
|
|
48
|
+
showModal: showModal,
|
|
49
|
+
customButton: customButton
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}, otherProps));
|
|
53
|
+
};
|
|
54
|
+
export default RainLineLayer;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["params", "showModal", "popup", "customButton"];
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
import { ImageLayer } from '@vtx/cs-map';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import FacilityTemplate from "../_components/Template/FacilityTemplate";
|
|
14
|
+
import FacilityTemplateV2 from "../_components/Template/FacilityTemplateV2";
|
|
15
|
+
import { getTenantId } from "../_util/util";
|
|
16
|
+
var RainManholeLayer = function RainManholeLayer(props) {
|
|
17
|
+
var _props$params = props.params,
|
|
18
|
+
params = _props$params === void 0 ? {} : _props$params,
|
|
19
|
+
showModal = props.showModal,
|
|
20
|
+
_props$popup = props.popup,
|
|
21
|
+
popup = _props$popup === void 0 ? {
|
|
22
|
+
version: '1'
|
|
23
|
+
} : _props$popup,
|
|
24
|
+
customButton = props.customButton,
|
|
25
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
26
|
+
var tenantId = getTenantId();
|
|
27
|
+
return /*#__PURE__*/React.createElement(ImageLayer, _extends({
|
|
28
|
+
url: "/geoserver/zhsw/wms",
|
|
29
|
+
params: _objectSpread({
|
|
30
|
+
typeName: 'zhsw:zhsw_manhole',
|
|
31
|
+
cql_filter: "category = 1",
|
|
32
|
+
viewparams: "tenantId:".concat(tenantId)
|
|
33
|
+
}, params),
|
|
34
|
+
name: "\u96E8\u6C34\u7AA8\u4E95",
|
|
35
|
+
labelField: "code",
|
|
36
|
+
zIndex: 30,
|
|
37
|
+
id: 'RainManholeLayer',
|
|
38
|
+
template: function template(feature) {
|
|
39
|
+
if (popup.version == '2') {
|
|
40
|
+
return /*#__PURE__*/React.createElement(FacilityTemplateV2, {
|
|
41
|
+
feature: feature,
|
|
42
|
+
showModal: showModal,
|
|
43
|
+
customButton: customButton
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/React.createElement(FacilityTemplate, {
|
|
47
|
+
feature: feature,
|
|
48
|
+
showModal: showModal,
|
|
49
|
+
customButton: customButton
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}, otherProps));
|
|
53
|
+
};
|
|
54
|
+
export default RainManholeLayer;
|