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

outdated

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);

7
likes
90
points
2.45k
downloads

Publisher

verified publisherbalanci.ng

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

ISC (license)

Dependencies

freezed_annotation, kdbush

More

Packages that depend on supercluster