更多>
最新下载
24小时阅读排行榜
- 1 Linux 内存泄漏排查常用方法
- 2 SQL联合索引设计_最左前缀原则详解
- 3 如何在 PHP 中按文件名自然顺序对关联数组键进行排序
- 4 Linux logrotate 日志切割配置教程
- 5 PHP十六进制转整型怎么做 PHP十六进制字符串转十进制【基础】
- 6 Linux SSH登录权限控制_SSH安全配置教程
- 7 Linux Docker 安装与镜像管理
- 8 Linux防火墙配置混乱_防火墙策略梳理方法
- 9 Python切片底层原理_切片性能与复制分析
- 10 php如何实现多重条件判断_php多重条件判断写法【嵌套】
- 11 Go语言中使用mgo库正确映射MongoDB驼峰字段的完整指南
- 12 Linux mpstat 查看多核 CPU 使用情况
- 13 HTML表单如何统计表单完成率_HTML表单统计表单完成率步骤【详解】
- 14 Python 中使用 args 传递字符串分割后的多个参数的正确方法
- 15 Linux load average 含义与分析方法
更多>
最新教程
-
- Node.js 教程
- 17966 2025-08-28
-
- CSS3 教程
- 1552039 2025-08-27
-
- Rust 教程
- 25038 2025-08-27
-
- Vue 教程
- 26921 2025-08-22
-
- PostgreSQL 教程
- 23332 2025-08-21
-
- Git 教程
- 10194 2025-08-21
下载首页 / 类库下载 / 其它类库
(function(w){
// the heatmapFactory creates heatmap instances
var heatmapFactory = (function(){
// store object constructor
// a heatmap contains a store
// the store has to know about the heatmap in order to trigger heatmap updates when datapoints get added
var store = function store(hmap){
var _ = {
// data is a two dimensional array
// a datapoint gets saved as data[point-x-value][point-y-value]
// the value at [point-x-value][point-y-value] is the occurrence of the datapoint
data: [],
// tight coupling of the heatmap object
heatmap: hmap
};
// the max occurrence - the heatmaps radial gradient alpha transition is based on it
this.max = 1;
this.get = function(key){
return _[key];
};
this.set = function(key, value){
_[key] = value;
};
}设置热力图展现的详细数据, 实现之后,即可以立刻展现
@param {Json Object } data
{"<b>max</b>" : {Number} 权重的最大值,
<br />"<b>data</b>" : {Array} 坐标详细数据,格式如下 <br/>
{"lng":116.421969,"lat":39.913527,"count":3}, 其中<br/>
lng lat分别为经纬度, count权重值
添加势力图的详细坐标点
@param {Number} lng 经度坐标
@param {Number} lat 经度坐标
@param {Number} count 经度坐标
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
