I know it works, because I have tested it with over 700,000 data points, but you did not. Someone please add unit tests. They may be as simple as adding a bunch of random items to the SpatialMap object, and validating it returns as much.