当前位置:网站首页>Openlayers 5.0 thermal diagram
Openlayers 5.0 thermal diagram
2022-04-23 19:09:00 【GIS roast lamb leg is delicious】
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({
// Vector data source
source: webgissource.heatmapsource,
blur: parseInt(50, 10), // Fuzzy size
opacity: 1,
radius: parseInt(30, 10) // Hot spot radius
})
map.addLayer(webgissource.heatmapvector);
static heatmaplayer(data){
//data data format {x:107.4,y108.5} for Loop execution 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 roast lamb leg is delicious]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231908120907.html
边栏推荐
- Switching power supply design sharing and power supply design skills diagram
- The difference between ordinary inner class and static inner class
- MySQL Téléchargement et installation de la version Linux
- 【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
- mysql通过binlog恢复或回滚数据
- Esp01s with Arduino development environment
- Go language GUI framework Fyne Chinese garbled or not displayed
- c1000k TCP 连接上限测试
- Get a list of recent apps
- Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
猜你喜欢
SQL常用的命令
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
[record] typeerror: this getOptions is not a function
From technical system to business insight, the closing chapter of the practice of small and medium-sized R & D team structure
PyGame tank battle
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
Practice of Druid SQL and security in meituan review
Introduction to ROS learning notes (II)
Redis optimization series (III) solve common problems after master-slave configuration
Simplified path (force buckle 71)
随机推荐
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
在渤海期货办理开户安全吗。
Is it safe to open an account in Bohai futures.
Xlslib use
[record] typeerror: this getOptions is not a function
開關電源設計分享及電源設計技巧圖解
Eight bit binary multiplier VHDL
RPM包管理
SSDB foundation 3
2022.04.23(LC_714_买卖股票的最佳时机含手续费)
One stop service platform for high-level talents and development of comprehensive service platform system for talents
Redis common interview questions
WebView saves the last browsing location
2022.04.23 (lc_763_divided into letter interval)
Practice of Druid SQL and security in meituan review
Client interns of a large factory share their experience face to face
Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)
Actual combat of Nacos as service configuration center
Minesweeping II of souI instance
Nacos cluster construction and MySQL persistence configuration