3D 地球
组件名称:3D地球
组件样式:

组件说明:
3D地球,适用于文本数据展示。如果大屏使用此组件展示,建议使用配置较高的主机。
请求方式:POST
https://report.tingyun.com/example/browser/map.json
参数:
| 字段 | 类型 | 描述 | 是否必选 | 
|---|---|---|---|
| currentTime | Number | 当前时间戳。 | 是 | 
| token | String | 盐值,校验规则为md5(timePeriod+currentTime+配置的token), 例如:timePeriod为30,currentTime为1513137332798,token为abc,则应对301513137332798abc进行md5。  | 
否 | 
| timePeriod | Number | 时间范围分钟数。 | 是 | 
正确响应数据:
| 字段 | 类型 | 描述 | 
|---|---|---|
| code | Number | 状态码 | 
| msg | String | 状态描述 | 
| data | Object | 数据对象 | 
| unit | String | 单位 | 
| data | Object[] | |
| firstscreen | Number | 指标值 | 
| name | String | 指标名称 | 
| type | String | 数据类型 | 
示例:
 HTTP/1.1 200 OK
{
    "code": 200,
    "msg": "success",
    "data": {
        "unit": "ms",
        "data": [
            {
                "firstScreen": 987.0,
                "name": "New Zealand",
                "type": "country"
            },
            {
                "firstScreen": 983.0,
                "name": "Japan",
                "type": "country"
            },
            {
                "firstScreen": 980.0,
                "name": "England",
                "type": "country"
            },
            {
                "firstScreen": 972.0,
                "name": "China",
                "type": "country"
            },
            {
                "firstScreen": 971.0,
                "name": "France",
                "type": "country"
            },
            {
                "firstScreen": 967.0,
                "name": "Australia",
                "type": "country"
            }
        ]
    }
}
数据库接入、CSV接入
SQL查询结果和CSV文件内容均为5列,字段名称可以任意指定,但是字段顺序不能改变:
| 字段顺序 | 类型 | 描述 | 
|---|---|---|
| unit | String | 单位 | 
| name | String | 名称 | 
| type | String | 类型 | 
| locationId | Number | 值 | 
| firstScreen | Number | 指标值 | 
以MySQL为例,SQL示例如下:
SELECT unit, name, type, locationId, firstScreen FROM earth_3d_test
CSV示例如下:
unit,name,type,locationId,firstScreen
ms,China,country,25,111.22
ms,Japan,country,45,222.33