Socket
Socket
Sign inDemoInstall

leaflet-webgl-heatmap

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 0.2.3

2

package.json
{
"name": "leaflet-webgl-heatmap",
"version": "0.2.2",
"version": "0.2.3",
"description": "A Leaflet plugin for a popular WebGL Heatmap library.",

@@ -5,0 +5,0 @@ "main": "./dist/leaflet-webgl-heatmap.js",

WebGL Heatmap Leaflet Plugin
=====================
============================

@@ -25,9 +25,13 @@ ![MIT License](http://img.shields.io/badge/license-MIT-lightgrey.svg)

***
Usage
===
##Installation
Set up your map
---
via npm:
```
npm install leaflet-webgl-heatmap --save
```
##Usage
###Set up your map
```

@@ -42,4 +46,4 @@ var base = L.tileLayer( tileURL );

Initialize Heatmap
---
###Initialize Heatmap
```

@@ -58,4 +62,4 @@ var heatmap = new L.webGLHeatmap({

Add Data
---
###Add Data
You should have an array of arrays in format: `[[lat, lng]...]` or be explicit with the point intensities: `[[lat, lng, intensity]...]`

@@ -69,4 +73,3 @@

Add heatmap to map
---
###Add heatmap to map

@@ -77,4 +80,4 @@ ```

Options
===
##Options
* size (in meters or pixels)

@@ -86,8 +89,8 @@ * units (m or px)

Methods
===
##Methods
* multiply (alter the intensity values of all points by a given number)
License
===
* MIT: see mit-license
##License
* MIT: see mit-license
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc