Releases: mapbox/supercluster
Releases · mapbox/supercluster
v6.0.1
v6.0.0
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.
v5.0.0
⚠️ breaking: changed the API entry point tonew Supercluster(...)
in place ofsupercluster(...)
. This makes it more in line with idiomatic modern ES, and also more flexible (i.e. you can extend the class). #109- Fixed
getClusterExpansionZoom
not returning the right result onmaxZoom
. #106 - Modernized the code base — now the module entry point exposes idiomatic ES6 code, while the
main
entry point remains a ES5-compatible UMD build.
v4.1.1
v4.1.0
Assign feature ids clusters and retain ids on input features.