config.ts
1.34 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
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,
},
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)
}