forked from huiyan-fe/mapv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
124 lines (124 loc) · 2.13 KB
/
Copy pathconfig.js
File metadata and controls
124 lines (124 loc) · 2.13 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
define(function () {
var drawOptions = {
simple: {
radius: 1.5,
fillStyle: 'rgba(239, 168, 0, 0.8)',
editable: ['radius', 'fillStyle']
},
bubble: {
splitList: [{
start: 1,
end: 2,
radius: 1
}, {
start: 2,
end: 3,
radius: 2
}, {
start: 3,
end: 4,
radius: 3
}, {
start: 4,
end: 5,
radius: 4
}, {
start: 5,
radius: 6
}],
globalCompositeOperation: 'lighter',
fillStyle: 'rgba(239, 168, 0, 0.8)',
editable: ['strokeStyle', 'fillStyle', 'globalCompositeOperation', {
name: 'splitList',
type: 'json'
}]
},
choropleth: {
radius: 2,
fillStyle: 'rgba(130, 195, 44, 0.8)',
splitList: [{
start: 1,
end: 2,
color: 'rgba(198, 225, 22, 0.8)'
}, {
start: 2,
end: 3,
color: 'rgba(251, 221, 12, 0.8)'
}, {
start: 3,
end: 4,
color: 'rgba(243, 165, 0, 0.8)'
}, {
start: 4,
end: 5,
color: 'rgba(230, 119, 10, 0.8)'
}, {
start: 5,
color: 'rgba(223, 66, 3, 0.8)'
}],
editable: ['radius', {
name: 'splitList',
type: 'json'
}]
},
density: {
gridWidth: '30',
gridUnit: 'px',
gridType: 'honeycomb',
showNum: true,
editable: ['gridWidth', {
name: 'gridUnit',
type: 'option',
value: ['px', 'm']
}, {
name: 'gridType',
type: 'option',
value: ['honeycomb', 'brick']
}, {
name: 'showNum',
type: 'check'
}]
},
heatmap: {
radius: 500,
maxOpacity: 0.8,
max: 100,
blur: true,
type: 'arc',
fillStyle: 'rgba(55, 55, 255, 0.8)',
gradient: {
'0.4': 'blue',
'0.6': 'cyan',
'0.7': 'lime',
'0.8': 'yellow',
'1.0': 'red'
},
editable: ['radius', 'max', 'maxOpacity', {
name: 'gradient',
type: 'json'
}, {
name: 'blur',
type: 'check'
}, {
name: 'type',
type: 'option',
value: ['rect', 'arc']
}]
},
category: {
radius: 2,
fillStyle: 'rgba(55, 55, 255, 0.8)',
editable: ['radius']
},
intensity: {
radius: 2,
max: 10,
fillStyle: 'rgba(55, 55, 255, 0.8)',
editable: ['radius', 'max']
},
cluster: {}
};
return {
drawOptions: drawOptions
}
})