28 lines
888 B
TypeScript
Raw Normal View History

2022-10-19 09:29:50 +08:00
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { MapAmapConfig } from './index'
import { chartInitConfig } from '@/settings/designSetting'
import cloneDeep from 'lodash/cloneDeep'
2022-10-24 10:20:06 +08:00
import dataJson from './data.json'
2022-10-19 09:29:50 +08:00
export const option = {
2022-10-24 10:20:06 +08:00
dataset: dataJson,
2022-10-19 09:29:50 +08:00
amapKey: 'aa76ad84f92f661980f710cbe966b7f6',
amapStyleKey: 'normal',
amapStyleKeyCustom: '',
2022-10-24 10:20:06 +08:00
amapLon: 116.397428,
amapLat: 39.90923,
2022-10-19 09:29:50 +08:00
amapZindex: 10,
2022-10-19 10:21:48 +08:00
viewMode: '2D',
pitch: 60,
skyColor: '#53A9DE',
2022-10-19 09:29:50 +08:00
lang: 'zh_cn',
features: ['bg', 'point', 'road', 'building']
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = MapAmapConfig.key
public attr = { ...chartInitConfig, w: 1000, h: 800, zIndex: -1 }
public chartConfig = cloneDeep(MapAmapConfig)
public option = cloneDeep(option)
}