A very fast geospatial point clustering library for browsers and Node.
Fixed a bug introduced in v6.0.0 where some aggregated cluster properties were calculated incorrectly.
⚠️ Breaking: removed initial
option of the map/reduce functionality. Now Supercluster uses the first mapped item of the cluster as the initial value:
// before
value = initial;
reduce(value, a);
reduce(value, b);
...
// after
value = a;
reduce(value, b);
...
In most cases, you can simply remove the initial
option and things will work. There are some exceptions where you'd need to update your map
function to make up for lack of initial
, but they should be rare.
new Supercluster(...)
in place of supercluster(...)
. This makes it more in line with idiomatic modern ES, and also more flexible (i.e. you can extend the class). #109getClusterExpansionZoom
not returning the right result on maxZoom
. #106main
entry point remains a ES5-compatible UMD build.Fix a build issue that prevented v4.1.0 from being published to NPM.
Fix a bug where getClusters
didn't return correct results with a -180..180 bbox.
Assign feature ids clusters and retain ids on input features.
Exposed Supercluster as a proper ES module.
Fixed a bug that could cause supercluster
to get stuck in an infinite loop when given unwrapped bbox values in getClusters
. #80 #73
Fixed getClusters
queries with the bbox crossing the date line.
Added default export for better ES6 modules / transpiler support.