23 lines
318 B
Markdown
23 lines
318 B
Markdown
|
Heapmap.js 数据集格式为:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
max: Number 权重的最大值,
|
||
|
data: Array[] 热力点数据集
|
||
|
}
|
||
|
```
|
||
|
|
||
|
其中 max 不填则默认取数据集 count 最大值.
|
||
|
|
||
|
例:
|
||
|
|
||
|
```
|
||
|
{
|
||
|
max: 100,
|
||
|
data: [
|
||
|
{lng: 116.405285, lat: 39.904989, count: 65},
|
||
|
{lng: 116.415285, lat: 39.804989, count: 10}
|
||
|
]
|
||
|
}
|
||
|
```
|