当前位置:网站首页>openlayers 5.0 热力图
openlayers 5.0 热力图
2022-04-23 19:08:00 【Gis烤羊腿真好吃】
import Vector from 'ol/source/Vector.js'
import { Heatmap as HeatmapLayer } from 'ol/layer.js'
import Feature from 'ol/Feature.js'
import Point from 'ol/geom/Point.js'
var webgissource={};
webgissource.heatmapsource=new Vector()
webgissource.heatmapvector = new HeatmapLayer({
// 矢量数据源
source: webgissource.heatmapsource,
blur: parseInt(50, 10), // 模糊尺寸
opacity: 1,
radius: parseInt(30, 10) // 热点半径
})
map.addLayer(webgissource.heatmapvector);
static heatmaplayer(data){
//data数据格式{x:107.4,y108.5} for循环执行heatmaplayer()
var points=new Point([data.x,data.y]);
var iconFeature = new Feature({
geometry:points,
attributions:{
feature:data,
type:'rlt'
}
})
webgissource.heatmapvector.getSource().addFeature(iconFeature)
}
版权声明
本文为[Gis烤羊腿真好吃]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_38190600/article/details/102488135
边栏推荐
- [popular science] CRC verification (I) what is CRC verification?
- Seata handles distributed transactions
- 迁移学习进阶
- MySQL Téléchargement et installation de la version Linux
- Practice of Druid SQL and security in meituan review
- Fundamentals of machine learning theory -- some terms about machine learning
- Getting started with vcpkg
- 简化路径(力扣71)
- 在渤海期货办理开户安全吗。
- Tencent cloud GPU best practices - remote development training using jupyter pycharm
猜你喜欢
C: generic reflection
mysql_ Download and installation of Linux version
Wechat video extraction and receiving file path
[报告] Microsoft :Application of deep learning methods in speech enhancement
为何PostgreSQL即将超越SQL Server?
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
12个例子夯实promise基础
Download xshell 6 and xftp6 official websites
[advanced level 11 of C language -- character and string functions and their simulation implementation (2)]
Simple use of navigation in jetpack
随机推荐
开关电源设计分享及电源设计技巧图解
Nacos作为服务注册中心
【C语言进阶11——字符和字符串函数及其模拟实现(2))】
RPM包管理
在渤海期货办理开户安全吗。
ESP32 LVGL8. 1 - roller rolling (roller 24)
解决:cnpm : 無法加載文件 ...\cnpm.ps1,因為在此系統上禁止運行脚本
MySQL statement
FTP、ssh远程访问及控制
c1000k TCP 连接上限测试1
ESP32 LVGL8. 1 - img picture (IMG 20)
Druid SQL和Security在美团点评的实践
Nacos as service registry
Codeforces Round #784 (Div. 4)
Feature selection feature_ selection--SelectKBest
特征选择feature_selection--SelectKBest
Switching power supply design sharing and power supply design skills diagram
Summary of actual business optimization scheme - main directory - continuous update
: app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
Raspberry pie uses root operation, and the graphical interface uses its own file manager