CN-1563 feat: 地图配置从接口获取

This commit is contained in:
chenjinsong
2024-03-12 17:33:29 +08:00
parent 011ed9ca63
commit bfcae5b3cc
3 changed files with 19 additions and 7 deletions

View File

@@ -47,7 +47,8 @@ export const storageKey = {
linkInfo: 'cn-link-info',
history: 'cn-history',
schemaEntityExplore: 'schema_entity_explore',
trackingSubscribers: 'tracking-subscribers'
trackingSubscribers: 'cn-tracking-subscribers',
mapConfig: 'cn-map-config'
}
export const largeCountryList = ['CN', 'US', 'RU', 'AU', 'CA', 'KZ', 'IN', 'BR']
@@ -2531,6 +2532,14 @@ export const reg = {
containChinese: /[\u4E00-\u9FA5\uF900-\uFA2D]+/
}
export const defaultMapConfig = {
center: [116.38, 39.82], // 默认地图中心
maxZoom: 14, // 最大缩放等级
minZoom: 3, // 最小缩放等级
mapLevel: 2, // 数据精度 1、2、31最大
defaultZoom: 12 // 默认缩放等级
}
export const report = {
timeRuleList: [
{ name: 'overall.today', value: 'today' },