Skip to content

Commit

Permalink
improve readme more
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Feb 3, 2014
1 parent db397e2 commit b415ed9
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To include the plugin, just use `leaflet-heat.js` from the `dist` folder:

## Reference

### L.heatLayer(latlngs, options)
#### L.heatLayer(latlngs, options)

Constructs a heatmap layer given an array of `LatLng` points and an object with the following options:

Expand All @@ -40,24 +40,12 @@ Constructs a heatmap layer given an array of `LatLng` points and an object with

Optional third argument in each `LatLng` point (`altitude`) represents point intensity.

### Methods

#### setOptions(options)

Sets new heatmap options and redraws it.

#### addLatLng(latlng)

Adds a new point to the heatmap and redraws it.

#### setLatLngs(latlngs)

Resets heatmap data and redraws it.

#### redraw()

Redraws the heatmap.
#### Methods

- **setOptions(options)**: Sets new heatmap options and redraws it.
- **addLatLng(latlng)**: Adds a new point to the heatmap and redraws it.
- **setLatLngs(latlngs)**: Resets heatmap data and redraws it.
- **redraw()**: Redraws the heatmap.

## Changelog

Expand Down

0 comments on commit b415ed9

Please sign in to comment.