You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

74 lines
2.4 KiB

{
"properties" : { },
"id" : "a3c4d5e6f7a8490b1c2d3e4f5a67890",
"script" : null,
"groupId" : "f8e3d2c1b0a94e5f8a7b6c5d4e3f2a1",
"name" : "系统配置",
"createTime" : 1780876900000,
"updateTime" : 1780882000000,
"lock" : null,
"createBy" : "admin",
"updateBy" : "admin",
"path" : "/system-config",
"method" : "GET",
"parameters" : [ ],
"options" : [ ],
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : "大屏系统配置:标题、标题背景、地图枢纽节点(红原)及坐标映射等",
"requestBodyDefinition" : null,
"responseBodyDefinition" : null
}
================================
// 默认配置(可在 magic-api 编辑器中直接修改)
// mapHub.name 需与「地图迁徙数据」接口中的 hubName 保持一致
var config = {
title: '/images/标题.png',
titleBackground: '/images/标题背景.png',
mapHub: {
name: '红原县',
coordinates: [102.568685, 32.826358],
description: '四川省阿坝州红原县,中国重要的牦牛养殖基地',
localOriginKeyword: '红原'
},
mapFlowLevels: {
high: { threshold: 80, color: '#E6A23C', description: '主要流向' },
medium: { threshold: 40, color: '#409EFF', description: '重要流向' },
low: { threshold: 0, color: '#67C23A', description: '一般流向' }
},
mapGeoCoordMap: {
'红原县': [102.568685, 32.826358],
'邛溪镇': [102.515, 32.7855],
'龙日镇': [102.484, 32.3605],
'麦洼乡': [102.918, 32.9156],
'阿木乡': [102.789, 32.9154],
'刷经寺镇': [102.661, 31.9177],
'瓦切镇': [102.669, 33.2578],
'查尔玛乡': [101.921, 32.5029],
'江茸乡': [102.412, 32.3022],
'安曲镇': [102.222, 32.6709],
'色地镇': [102.999, 32.865],
'成都': [103.958004, 30.772708],
'重庆': [106.54, 29.59],
'北京': [116.46, 39.92],
'上海': [121.48, 31.22],
'天津': [117.20, 39.13],
'拉萨': [91.420246, 29.878931],
'西宁': [101.74113, 36.641678],
'兰州': [103.249708, 35.956623],
'西安': [108.95, 34.27],
'昆明': [102.72, 25.05],
'贵阳': [106.71, 26.57],
'康定': [101.956, 30.057],
'香格里拉': [99.708, 27.825],
'合作': [102.911, 34.986],
'甘南藏族自治州': [103.3049, 34.644479],
'玉树': [97.008, 33.004],
'甘孜藏族自治州': [101.226006, 30.470387]
}
}
return config