supercluster 0.0.1 copy "supercluster: ^0.0.1" to clipboard
supercluster: ^0.0.1 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
0
pub points
84%
popularity

Publisher

verified publisherbalanci.ng

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

freezed_annotation, kdbush

More

Packages that depend on supercluster