
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
mapboxgl-heatmap
Advanced tools
This module uses the webgl-heatmap from https://github.com/pyalot/webgl-heatmap. This adds a Canvas element and overlays that on top of a mapbox-gl map.
The heatmap will reset on map state change.
usage:
var mapboxgl_heatmap = require('mapboxgl-heatmap');
var heatmap;
function msgRec(msg) {
var latlng = new mapboxgl.LatLng(msg.lat, msg.lng);
var point = map.project(latlng);
heatmap.addPoint(point.x, point.y, 25, 0.5);
}
mapboxgl.accessToken = 'pk.enter-your-access-token-here';
map = new mapboxgl.Map({
container: 'map',
style: 'https://www.mapbox.com/mapbox-gl-styles/styles/outdoors-v6.json',
center: [37.830348, -95.486052],
zoom: 4
});
// Add heatmap to the map
heatmap = mapboxgl_heatmap.heatmap(map);
// Add zoom and rotation controls to the map.
map.addControl(new mapboxgl.Navigation());
//bootstrap web socket
webSocket.on('data', msgRec);
FAQs
Rudamentary MapBoxGL Plugin to add ability to add a heatmap
The npm package mapboxgl-heatmap receives a total of 0 weekly downloads. As such, mapboxgl-heatmap popularity was classified as not popular.
We found that mapboxgl-heatmap 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.