Skip to content

Commit

Permalink
add a note about gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Feb 3, 2014
1 parent 3e4658c commit 4442519
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ Constructs a heatmap layer given an array of `LatLng` points and an object with

- **maxZoom** - zoom level where the points reach maximum intensity (as intensity scales with zoom),
equals `maxZoom` of the map by default
- **max** - maximum point intensity, `1.0` by default
- **radius** - radius of each "point" of the heatmap, `25` by default
- **blur** - amount of blur, `15` by default
- **max** - maximum point intensity, `1` by default.
- **gradient** - color gradient config, e.g. `{0.4: 'blue', 0.65: 'lime', 1: 'red'}`

```js
heat.setOptions(options);
Expand Down Expand Up @@ -70,6 +71,7 @@ Redraws the heatmap.

- Added `addLatLng`, `setLatlngs`, `setOptions` and `redraw` methods.
- Added `max` option and support for different point intensity values (through `LatLng` third argument).
- Added `gradient` option to customize colors.

#### 0.0.1 — Jan 31, 2014

Expand Down

0 comments on commit 4442519

Please sign in to comment.