当前位置:网站首页>Cesium loading display thermal diagram
Cesium loading display thermal diagram
2022-06-25 04:04:00 【Wang +v】
Cesium Load and display the heat map
I'm a little white , So far, for 3D I don't know anything about , So , about cesium It is not particularly good to use , Not at all , So we are also groping bit by bit , In the process of learning bit by bit , So some blog posts may not be accurate , Just to record the learning process , Wrong don't spray me !!
CesiumHeatmap
First of all , A tool is needed to draw a heat map , Is the use of CesiumHeatmap This tool , so what , Here is one of his github The address of .
CesiumHeatmap 【 Time and space gate ~ sou ~】

Just download it and put it in the project .
I put him in here .

Then introduce it into the project .
<script src="./CesiumHeatmap/CesiumHeatmap.js"></script>
Write a case
// Test thermodynamic diagram
function addHeatMap() {
let bounds = {
west: 106.243911,
east: 106.270811,
south: 29.244545,
north: 29.289995,
};
let heatMap = CesiumHeatmap.create(
viewer, // your cesium viewer
bounds, // bounds for heatmap layer
{
// heatmap.js options go here
// maxOpacity: 0.3
gradient: {
// the gradient used if not given in the heatmap options object
'.3': '#d9e7fc',
'.65': '#2a7aed',
'.8': '#fbd801',
'.95': '#18c3a1'
},
},
);
let data = [
{
x: 106.254153, y: 29.2883939, value: 76 },
{
x: 106.2654284, y: 29.2854935, value: 63 },
{
x: 106.265005, y: 29.284573, value: 1 },
{
x: 106.264001, y: 29.283456, value: 21 },
{
x: 106.263219, y: 29.282181, value: 28 },
{
x: 106.262788, y: 29.279673, value: 41 },
{
x: 106.2632087, y: 29.2742665, value: 75 },
{
x: 106.2505158, y: 29.28138, value: 76 },
{
x: 106.2531094, y: 29.2833591, value: 100 },
{
x: 106.2531093, y: 29.2844560, value: 80 },
{
x: 106.253293, y: 29.284826, value: 1 },
{
x: 106.250099, y: 29.285638, value: 21 },
{
x: 106.2469149, y: 29.2864109, value: 28 },
{
x: 106.254119, y: 29.276274, value: 41 },
];
let valueMin = 0;
let valueMax = 50;
heatMap.setWGS84Data(valueMin, valueMax, data);
viewer.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees(106.254153, 29.2742665, 2e3),
orientation: {
heading: Cesium.Math.toRadians(0.0),
pitch: Cesium.Math.toRadians(-90.0),
roll: 0.0,
},
});
}
The effect is like this .

边栏推荐
- 墨天轮访谈 | IvorySQL王志斌—IvorySQL,一个基于PostgreSQL的兼容Oracle的开源数据库
- 居家办公之后才明白的时间管理 | 社区征文
- Mstp+vrrp+ospf implements a three-tier architecture
- Interview with Mo Tianlun | ivorysql wangzhibin - ivorysql, an Oracle compatible open source database based on PostgreSQL
- Does it count as staying up late to sleep at 2:00 and get up at 10:00? Unless you can do it every day
- On the self-cultivation of an excellent red team member
- @RequestBody解决获取参数为null
- Configuration source code
- Development of trading system (VII) -- Analysis of trading delay
- web3.eth. Getpendingtransactions() returns null?
猜你喜欢

Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award

The more AI evolves, the more it resembles the human brain! Meta found the "prefrontal cortex" of the machine. AI scholars and neuroscientists were surprised

Cesium 加载显示热力图

Development of trading system (VII) -- Analysis of trading delay

Development of trading system (II) -- market data

《悉达多》:一生之书,可以时常反刍

Hello CTP (IV) - CTP transaction API

Lu Qi invests in quantum computing for the first time

Crawler grabs the idea of reading on wechat

Perfect shuffle problem
随机推荐
Break the memory wall with CPU scheme? Learn from PayPal stack to expand capacity, and the volume of missed fraud transactions can be reduced to 1/30
OpenSUSE environment variable settings
智慧风电:数字孪生 3D 风机智能设备运维
Lu Qi invests in quantum computing for the first time
Work assessment of pharmacotherapeutics of Jilin University in March of the 22nd spring -00064
Deveco studio 3.0 editor configuration tips
uniapp 制作手机app程序, 使用uni.chooseVideo录制视频,视频播放模糊分辨率低的原因
[rust contribution] implement Message Oriented Middleware (6) -client from zero
The problem that only the home page can be accessed under openSUSE Apache laravel
Work assessment of Biopharmaceutics of Jilin University in March of the 22nd spring -00005
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
Sun Wu plays Warcraft? There is a picture and a truth
2022-06-21-Flink-49(一. SQL手册)
Qt编译数据库插件通用步骤说明
Solution to the problem that Linux crontab timed operation Oracle does not execute (crontab environment variable problem)
Oracle-sqlload import external data details
墨天轮访谈 | IvorySQL王志斌—IvorySQL,一个基于PostgreSQL的兼容Oracle的开源数据库
AI quantitative transaction (II) -- tushare financial data framework
Internet Explorer died, and netizens started to build a true tombstone
Jilin University 22 spring March "official document writing" assignment assessment-00084