
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
leaflet-point-animator
Advanced tools
Animate GeoJSON point features using an arbitrary time property
ALPHA plugin to animate large number of GeoJSON points.
e.g. scrubbing through 60MB of GeoJSON:

If you don't have a lot of points, and require more flexibility (e.g. support for polygons) + interactivity you should check out: leaflet-temporal-geojson instead.
npm install leaflet-point-animator --save
Most importantly - point features can either be provided as:
const pointAnimatorLayer = L.pointAnimatorLayer({
// Create keyframes from raw GeoJSON features
features: [
{} // flat array of GeoJSON features
],
// OR -> pre-formatted keyframes
keyframes: {
'<ISO_TIME>': [], // array of GeoJSON point features for this keyframe
},
// which property to use for time (expects ISO 8601 string)
timeKey: "time",
style(feature) {
return {
// do custom styling things
fillColor: color(feature.properties.age),
stroke: false,
radius: 5
}
},
// OPTIONAL - supply the name of a custom pane,
// will be created if doesn't exist, defaults to overlayPane
// https://leafletjs.com/reference-1.6.0.html#map-pane
paneName: 'myCustomPane',
// OPTIONAL - callback to be notified when keyframes ready for use
onKeyframesReady() {
// DEMO - get a list of frame keys, and set first frame active
const frameKeys = pointAnimatorLayer.getFrameKeys();
pointAnimatorLayer.setFrame(frameKeys[0]);
},
// 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 | |
getFrame | Get the current frame time (-1 if not set) | |
getFrameKeys | Get an ascending array of all ISO times (can then be used to call setFrame) | |
setFrame | time: {string} | display the features at the given ISO time (if calling from something like a range slider, recommended to throttle - see demo). |
clearCanvas | Clears canvas of any points | |
redraw | Trigger a redraw of the canvas |
npm install
npm run build
FAQs
Animate GeoJSON point features using an arbitrary time property
We found that leaflet-point-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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.