config.ts
1.66 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
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
import { AddThreeDimensionalMapConfig } from './index'
import { chartInitConfig } from '@/settings/designSetting'
import { CreateComponentType } from '@/packages/index.d'
import cloneDeep from 'lodash/cloneDeep'
import { dataMaps } from './mock'
//省市区枚举
export const enum areaEnum {
PROVINCE = 'PROVINCE',
CITY = 'CITY',
COUNTY = 'COUNTY'
}
export const includes = []
export const option = {
iconColor: 'black',
showIcon: false,
iconDistanceRight: 20,
iconDistanceTop: 20,
drillingIn: false,
mapRegion: {
adcode: 'china',
showHainanIsLands: true,
saveSelect: {}
},
tooltip: {
show: true
},
geo3D: {
map: 'centerMap',
roam: true,
regionHeight: 0,
label: {
show: true,
distance: 0,
color: 'rgba(255,255,255,1)', // 地图初始化区域字体颜色
fontSize: 12,
opacity: 1,
backgroundColor: 'rgba(255,255,255,0)',
shadowColor: '#043157', // 地图模糊颜色
shadowBlur: '3',
borderRadius: 0,
distanca: 0
}
},
series: [
{
type: 'map3D',
map: 'centerMap',
itemStyle: {
color: 'red',
borderWidth: 0.8,
borderColor: 'green'
},
data: []
}
]
}
export const MapDefaultConfig = { ...option }
export default class Config extends PublicConfigClass implements CreateComponentType {
public key: string = AddThreeDimensionalMapConfig.key
public attr = { ...chartInitConfig, w: 750, h: 800, zIndex: -1 }
public chartConfig = cloneDeep(AddThreeDimensionalMapConfig)
public option = echartOptionProfixHandle(option, includes)
}