-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non-root bbox #21
Comments
The current format handling allows you do it like this (perhaps it's not obvious and I should add a note to the readme): rbush(9, ['.bbox.minLng', '.bbox.minLat', '.bbox.maxLng', '.bbox.maxLat']); For even more complex situations, you can redefine methods |
yeah I guess I meant way to do it easier then |
@calvinmetcalf I thought that was easy enough... How would a perfect API look in your opinion? |
a bit like #23 |
With the recent API change in 2.0, where bbox is no longer an array by default, I think we should keep format options as is. |
it would be nice to have an easy way to tell rbush that it can find the bbox array somewhere besides the root, i.e. if you have an object that has it's bbox in item.bbox, maybe pass a 'string' to format instead of an array and have
_initFormat
do this for strings, can do a pull.The text was updated successfully, but these errors were encountered: