{"id":13701560,"url":"https://github.com/ursudio/leaflet-webgl-heatmap","last_synced_at":"2025-10-22T21:56:07.060Z","repository":{"id":11700805,"uuid":"14215488","full_name":"ursudio/leaflet-webgl-heatmap","owner":"ursudio","description":"Leaflet plugin for @pyalot's webgl heatmap library.","archived":false,"fork":false,"pushed_at":"2017-06-28T18:44:14.000Z","size":889,"stargazers_count":147,"open_issues_count":3,"forks_count":29,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-13T19:20:15.843Z","etag":null,"topics":["heatmap","leaflet-plugins","webgl-heatmap-leaflet","webgl-heatmap-library"],"latest_commit_sha":null,"homepage":"https://ursudio.github.io/leaflet-webgl-heatmap/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ursudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-07T20:49:33.000Z","updated_at":"2025-07-01T06:36:15.000Z","dependencies_parsed_at":"2022-09-01T20:41:17.516Z","dependency_job_id":null,"html_url":"https://github.com/ursudio/leaflet-webgl-heatmap","commit_stats":null,"previous_names":["ursudio/webgl-heatmap-leaflet"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ursudio/leaflet-webgl-heatmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ursudio%2Fleaflet-webgl-heatmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ursudio%2Fleaflet-webgl-heatmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ursudio%2Fleaflet-webgl-heatmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ursudio%2Fleaflet-webgl-heatmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ursudio","download_url":"https://codeload.github.com/ursudio/leaflet-webgl-heatmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ursudio%2Fleaflet-webgl-heatmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280520820,"owners_count":26344439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["heatmap","leaflet-plugins","webgl-heatmap-leaflet","webgl-heatmap-library"],"created_at":"2024-08-02T20:01:48.879Z","updated_at":"2025-10-22T21:56:07.044Z","avatar_url":"https://github.com/ursudio.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"WebGL Heatmap Leaflet Plugin\n============================\n\n![MIT License](http://img.shields.io/badge/license-MIT-lightgrey.svg)\n\u0026nbsp;\n![Leaflet](http://img.shields.io/badge/leaflet-1.1.0-green.svg?style=flat)\n\u0026nbsp;\n[![Build Status](https://travis-ci.org/ursudio/leaflet-webgl-heatmap.svg?branch=master)](https://travis-ci.org/ursudio/leaflet-webgl-heatmap)\n\nA Leaflet plugin for [@pyalot](https://github.com/pyalot)'s [webgl heatmap library](https://github.com/pyalot/webgl-heatmap).\n\nAs [@pyalot](https://github.com/pyalot) explains in his post, [High Performance JS heatmaps](http://codeflow.org/entries/2013/feb/04/high-performance-js-heatmaps/), sometimes there is a need to be able to draw hundreds of thousands of data points to a map (and not have your browser crash due to lag).\n\nWe used his library to create a WebGL alternative to Leaflet's existing heatmap plugins.\n\nSee the [example](http://ursudio.github.io/leaflet-webgl-heatmap/)\n\n![Screenshot](http://i.imgur.com/VGXbWpx.png)\n\n## Installation\n\nvia npm:\n```bash\nnpm install leaflet-webgl-heatmap \n```\n\n## Usage\n\n### Set up your map\n\n```javascript\nvar base = L.tileLayer( tileURL );\nvar map = L.map('mapid', {\n\tlayers : [base],\n\tcenter : [44.65, -63.57],\n\tzoom: 12 \n});\n```\n\n### Initialize Heatmap\n\n```javascript\nvar heatmap = new L.webGLHeatmap({\n    size: diameter-in-meters\n});\n```\n\nOR in pixels (doesn't scale with zoom levels):\n\n```javascript\nvar heatmap = new L.webGLHeatmap({\n    size: diameter-in-pixels,\n    units: 'px'\n});\n```\n\n### Add Data\n\nYou should have an array of arrays in format: `[[lat, lng]...]` or be explicit with the point intensities: `[[lat, lng, intensity]...]`\n\n```javascript\nvar dataPoints = [[44.6674, -63.5703, 37], [44.6826, -63.7552, 34], [44.6325, -63.5852, 41], [44.6467, -63.4696, 67], [44.6804, -63.487, 64], [44.6622, -63.5364, 40], [44.603, - 63.743, 52]];\n```\n\nWith this you can add the whole dataset with `heatmap.setData(dataPoints)`.\n\n### Add heatmap to map\n\n```javascript\nmap.addLayer( heatmap );\n```\n\n## Options\n\n* size (in meters or pixels)\n* units (m or px)\n* opacity (for the canvas element)\n* gradientTexture (image url or image)\n* alphaRange (adjust transparency by changing to value between 0 and 1)\n\n## Methods\n\n* multiply (alter the intensity values of all points by a given number)\n\n## License\n\n* MIT: see mit-license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fursudio%2Fleaflet-webgl-heatmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fursudio%2Fleaflet-webgl-heatmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fursudio%2Fleaflet-webgl-heatmap/lists"}