Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
cesiumheatmap3d
Advanced tools
A library for creating 3D heatmap(using heatmap.js) in Cesium
$ npm install cesiumheatmap3d
import CesiumHeatMap3D from 'cesiumheatmap3d';
const viewer = new Cesium.Viewer(cesiumContainer, viewerOption);
const bounds = [120, 20, 130, 40];
/**
* create a CesiumHeatMap3D instance
* @param {Cesium.Viewer} viewer The Viewer of Cesium.
* @param {Array<number>} bounds [west, south, east, north]
* @param {object} heatmapOptions Part of the option of heatmap.js are now available: gradient, radius, opacity, maxOpacity, minOpacity and blur are now available.
* @param {object} heatmap3DOptions The options which are used to generate the 3D heatmap. Height and heightGradient are now available.
*/
const heatmapInstance = new CesiumHeatMap3D(
viewer,
bounds,
{
blur: 0.8,
radius: 35
},
{
baseHeight: 100,
heightGradient: 100
}
);
let points = [];
for (let i = 0; i < 1000; i++) {
let lon = Math.random() * (bounds[2] - bounds[0]) + bounds[0];
let lat = Math.random() * (bounds[3] - bounds[1]) + bounds[1];
let value = Math.random() * 100;
points.push({ lon, lat, value });
}
/**
* Initializes a heatmap instance with a dataset
* @param {object} data An array of objects, where each item contains lon, lat, value and radius(optional).
* @param {number} min Min value of the heatmap.
* @param {number} max Max value of the heatmap.
*/
heatmapInstance.setData(points, 0, 100)
/**
* Remove the 3D heatmap in Cesium
*/
heatmapInstance.removeDate()
To be continued...
FAQs
A library for creating 3D heatmap(using heatmap.js) in Cesium.
We found that cesiumheatmap3d demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.