更多>
最新下载
24小时阅读排行榜
- 1 什么是异步JavaScript_回调函数如何使用【教程】
- 2 c++中如何将字符串转换为整数_c++ string转int方法【详解】
- 3 Golang Web接口返回慢如何排查_Golang接口性能分析方法
- 4 Postman如何测试XML上传接口 Postman发送form-data和raw XML
- 5 mysql安装完成后如何配置事件调度器_mysql任务管理配置
- 6 Three.js/Babylon.js如何加载上传的X3D/Collada格式XML
- 7 什么是mysql锁_mysql锁基础概念说明
- 8 c# 如何写日志 log4net
- 9 php动态网站开发怎样防止重复提交_PHP动态网站防重复提交法【方案】
- 10 css定位与布局的结合_使用position与display优化布局
- 11 C++构造函数怎么写 C++初始化列表与赋值的区别【细节】
- 12 如何为 HTML 表格添加棋盘式坐标标签(A–H / 1–8)
- 13 Go 中为何不推荐使用 this 作为方法接收者名称
- 14 XPath:匹配 class 属性值不包含指定子字符串的元素
- 15 Go 中方法接收者命名规范:为何不推荐使用 this
更多>
最新教程
-
- Node.js 教程
- 16303 2025-08-28
-
- CSS3 教程
- 1546987 2025-08-27
-
- Rust 教程
- 23426 2025-08-27
-
- Vue 教程
- 25868 2025-08-22
-
- PostgreSQL 教程
- 22367 2025-08-21
-
- Git 教程
- 9318 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
