1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
| import * as L from 'leaflet'
|
| const APP_GIS_HOST_2 = 'http://xearth.cn:6230'
| const myRenderer = L.canvas()// 需要使用画布渲染的使用 renderer: myRenderer 作为参数
| export const LayerSewers = {
| 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,
| 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: '雨水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'oilline',
| name: '含油污水线',
| sname: '含油污水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'saltline',
| name: '含盐污水线',
| sname: '含盐污水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'alkaliline',
| name: '含碱污水线',
| sname: '含碱污水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'outlet',
| name: '排口',
| sname: '排口',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'pk' // 关联PointLayers
| },
| {
| code: 'accidentline',
| name: '事故水线',
| sname: '事故水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'loopline',
| name: '循环水线',
| sname: '循环水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'purifyline',
| name: '净化水线',
| sname: '净化水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'lifeline',
| name: '生活污水',
| sname: '生活污水',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'fsss,hbss' // 关联PointLayers
| },
| {
| code: 'areainfo',
| name: '区域信息',
| sname: '区域信息',
| checked: true, // 默认选中状态
| filter: {},
| childLayer: 'qyxx' // 关联PointLayers
| }
| ]
| }
|
|