leaflet-webgl-heatmap
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"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 |
4752
90