Releases: mapbox/supercluster
Releases · mapbox/supercluster
v3.0.0
⚠️ RemovedclusterZoom
argument fromgetLeaves
,getChildren
andgetClusterExpansionZoom
methods — it's now encoded intocluster_id
numbers, so there's no longer a need to track it separately.⚠️ As a result of the change above, the same data will have differentcluster_id
numbers compared to previous releases.- Fixed
getLeaves
to properly handle features withnull
properties. - Improved handling of
null
geometries (supercluster will ignore them instead of throwing an error). - Imrpoved error reporting — specifying invalid
cluster_id
will now result in a descriptive error.
v2.3.0
- Added cluster properties aggregation through
initial
,map
andreduce
options. #36 - Added
getChildren
method for getting children of a cluster on the next zoom. #31 - Added
getLeaves
method for getting points of a cluster with pagination support. #19 - Added
getClusterExpansionZoom
for getting the zoom where cluster expands (useful for "click to zoom" feature). #33 - Slightly improved performance.