Closed rwillett closed 4 months ago
Sorry for not responding here. This seems to be a user error — compareMinX
and compareMinY
here expect {x, y}
format while the items are actually [x, y]
, hence the broken index:
toBBox([x, y]) { return {minX: x, minY: y, maxX: x, maxY: y}; }
compareMinX(a, b) { return a.x - b.x; } // should be return a[0] - b[0]
compareMinY(a, b) { return a.y - b.y; } // should be return a[1] - b[1]
Hi,
We have your rtree code working well and wanted to use the simple extension for points in the docs.
We can create the point tree (or we think we can), but no matter what we search on, we never get a result back.
We can add points using
and can see something using
but we cannot find the right format to pass to search to get something returned (anything!),
We've tried