
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
leaflet-image-animator
Advanced tools
Simple plugin to animate mutiple images as keyframes.

npm install leaflet-image-animator --save
See demo for detailed example.
const imageAnimatorLayer = L.imageAnimatorLayer({
frames: [
{
time: '<time string>',
img: '<base64 image string>'
}
],
startFrameIndex: 0,
bbox: [
'142.020371',
'-28.589904',
'155.372974',
'-7.4053889999999996'
],
// optional - supply the name of an existing custom pane
// default overlayPane (leaflet v0.7 compatible)
paneName: 'myCustomPane'
// optional callbacks when layer is added/removed from map
onAdd: function(){}
onRemove: function(){}
});
| method | params | description |
|---|---|---|
isActive | check if the layer is currently active on the map | |
getFrameTimes | Get an ascending array of all ISO times (can then be used to call setFrameTime) | |
setFrameTime | time: {string} | display the image at the given frame time |
getFrameTime | Get the current frame time (-1 if not set) | |
setFrameIndex | index: {Number} | display the particles at the given frame index |
getFrameIndex | Get the current frame index (-1 if not set) |
Data shown for the Great Barrier Reef has been derived from CSIRO's eReefs products
FAQs
Perform keyframe animation of images a leaflet map.
We found that leaflet-image-animator 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.