Include GeoJSON id in tree item, return whole item #6
Include GeoJSON id in tree item, return whole item #6
id in tree item, return whole item #6Conversation
This is an API breaking change.
|
Thanks @bhousel I so happened to need to do this today. I tested your branch out, it looks better, but in line with how geokdbush works by returning the original item would it be better to simply return the whole Feature object as is from the provided GeoJSON. It makes it easier to pass the polygon around if the return value is a GeoJSON Feature. |
|
Yeah, thinking back on my past API decision, I think I should have made it return the whole features. |
If you are ok with it, I'm happy to merge this and release a v1.. |
|
Or if we are going to make a breaking change, we make it return the original feature, rather than just the id and properties? |
Oh I see what you mean - push the whole original feature into |
|
Oh, that might have been the original reason I didn't push the original items to the tree. Let me think this through... |
I have a bunch of GeoJSON Featues without
properties, but they each have anid(see RFC7946)Can we change this library to:
idin the cached tree items (if notundefined)propsThis is an API breaking change, but it would be great to support
idlookup.