
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
react-map-gl-heatmap-overlay
Advanced tools
A heatmap overlay for [react-map-gl](https://github.com/uber/react-map-gl) built using [webgl-heatmap](https://github.com/vicapow/webgl-heatmap) originally created by [Florian Boesch](https://github.com/pyalot).
A heatmap overlay for react-map-gl built using webgl-heatmap originally created by Florian Boesch.
var HeatmapOverlay = require('react-map-gl-heatmap-overlay');
var cities = require('example-cities');
Where each element in cities looks like: {longitude, latitude}
.
render() {
return <MapGL {...viewport}>
<HeatmapOverlay locations={cities} {...viewport}/>
</MapGL>;
}
The locations
prop can be an array or ImmutableJS List.
Data accessors can be provided if your data doesn't fit the expected
{longitude, latitude}
form.
render() {
return <MapGL ...viewport>
<HeatmapOverlay locations={houses} {...viewport}
lngLatAccessor={(house) => [house.get('lng'), house.get('lat')]} />
</MapGL>;
}
Other accessors and their defaults:
intensityAccessor: (location) => {1 / 10}
sizeAccessor: (location) => 40,
// If not specified, defaults to Viridis.
gradientColors: Immutable.List(['blue', 'red'])
npm install react-map-gl-heatmap-overlay
npm run start
To run the example.
The included example uses raster tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.
FAQs
A heatmap overlay for [react-map-gl](https://github.com/uber/react-map-gl) built using [webgl-heatmap](https://github.com/vicapow/webgl-heatmap) originally created by [Florian Boesch](https://github.com/pyalot).
The npm package react-map-gl-heatmap-overlay receives a total of 829 weekly downloads. As such, react-map-gl-heatmap-overlay popularity was classified as not popular.
We found that react-map-gl-heatmap-overlay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.