0.1.4 • Published 8 years ago

points-cluster v0.1.4

Weekly downloads
8,370
License
ISC
Repository
-
Last release
8 years ago

Build Status

A fork of https://github.com/mapbox/supercluster library,

Added points array to cluster.

Removed lat lng transformations on Add.

const cl = supercluster([
  { lat: 10, lng: 10 },
  { lat: 10.1, lng: 10.1 },
  { lat: 12, lng: 12 },
  { lat: 84, lng: 179 },
]);

const r = cl({ bounds: { nw: { lat: 85, lng: -180 }, se: { lat: -85, lng: 180 } }, zoom: 2 });