Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ember-leaflet-heatmap-layer
Advanced tools
Readme
Brings Heatmap.js functionality into Ember-Leaflet.
ember install ember-leaflet-heatmap-layer
{{#leaflet-map lat=lat lng=lng zoom=zoom}}
{{tile-layer url="http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png"}}
{{heatmap-layer data=data valueField='...' maxValue=... minValue=... }}
{{/leaflet-map}}
data
heatmap data in format [{lat:24.6408,lng:46.7728,value:3}]
minValue
minimal value, default 0
maxValue
maximalValue, default 1
latField
latitude field name, default lat
lngField
longitude field name, default lng
valueField
value field name, default value
blur
The blur factor that will be applied to all datapoints. The higher the blur factor is, the smoother the gradients will be, default 0.85
minOpacity
The minimum opacity the lowest value in the heatmap will have (will be overridden if opacity set), default 0
maxOpacity
The maximum opacity the lowest value in the heatmap will have (will be overridden if opacity set), default 0.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), default 2
.
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
default true
useLocalExtrema
if set to false the heatmap uses the global maximum for colorization, defalt true
var gradient = {
// enter n keys between 0 and 1 here
// for gradient color customization
'.5': 'blue',
'.8': 'red',
'.95': 'white'
}
ember serve
npm test
(Runs ember 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/.
FAQs
The default blueprint for ember-cli addons.
The npm package ember-leaflet-heatmap-layer receives a total of 6 weekly downloads. As such, ember-leaflet-heatmap-layer popularity was classified as not popular.
We found that ember-leaflet-heatmap-layer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.