Brings Heatmap.js functionality into Ember-Leaflet.
ember install ember-leaflet-heatmap-layer
data
heatmap data in format[{lat:24.6408,lng:46.7728,value:3}]
minValue
minimal value, default0
maxValue
maximalValue, default1
latField
latitude field name, defaultlat
lngField
longitude field name, defaultlng
valueField
value field name, defaultvalue
blur
The blur factor that will be applied to all datapoints. The higher the blur factor is, the smoother the gradients will be, default0.85
minOpacity
The minimum opacity the lowest value in the heatmap will have (will be overridden if opacity set), default0
maxOpacity
The maximum opacity the lowest value in the heatmap will have (will be overridden if opacity set), default0.8
opacity
(optional) A global opacity for the whole heatmap. This overrides maxOpacity and minOpacity if set!backgroundColor
A background color string in form of hexcode, color name, or rgb(a)gradient
An object that represents the gradient (syntax: number string [0,1] : color string), check out the exampleradius
The radius each datapoint will have (if not specified on the datapoint itself), default2
. Radius should be small ONLY if scaleRadius is true (or small radius is intended). If scaleRadius is false it will be the constant radius used in pixels.scaleRadius
defaulttrue
useLocalExtrema
if set to false the heatmap uses the global maximum for colorization, defalttrue
var gradient = {
// enter n keys between 0 and 1 here
// for gradient color customization
'.5': 'blue',
'.8': 'red',
'.95': 'white'
}
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.