supercluster 0.1.0 copy "supercluster: ^0.1.0" to clipboard
supercluster: ^0.1.0 copied to clipboard

A port of MapBox's javascript supercluster library for fast marker clustering.

A port of MapBox's javascript supercluster library for fast marker clustering.

Usage #

final supercluster = Supercluster<CustomMapPoint>(
  getX: (p) => p.x,
  getY: (p) => p.y,
);
supercluster.load([
  Point(1.5, 46),
  Point(0.9, 46.4),
  Point(19, 45),
]);

// Returns the first two points.
supercluster.getClustersAndPoints(0.0, 43, 8, 47, 10);

// Returns a cluster.
supercluster.getClustersAndPoints(0.0, 43, 8, 47, 5);

3
likes
70
pub points
75%
popularity

Publisher

verified publisherbalanci.ng

A port of MapBox's javascript supercluster library for fast marker clustering.

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (LICENSE)

Dependencies

freezed_annotation, kdbush

More

Packages that depend on supercluster