-
Notifications
You must be signed in to change notification settings - Fork 97
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
Radius Query. Cannot read property 'getRectBound' of undefined #8
Comments
I have the same issue. Is there a fix for this issue? |
It turns out this is a bug in An ugly-but-effective option is to patch require('nodes2ts').S2RegionCoverer.FACE_CELLS = [0, 1, 2, 3, 4, 5].map(face => S2Cell.fromFacePosLevel(face, 0, 0)); Running that once before using either radius or rectangle queries should be enough. If the author of nodes2ts doesn't release a new version soon I'll add that patch to this lib. |
Hi sorry for the rookie question, but how do you actually "patch nodes2ts at run-time"?
Any help would be appreciated! |
Put that line in your own app's code, anywhere you like (once per-process should be enough) as long as it's before you call You could put it right on the line before your |
Thanks for your help, I'll try that! |
Issue is described here: robhogan#8
I get error "Cannot read property 'getRectBound' of undefined" if radius is greater than 1063652 meters.
Herre is my code:
Here is the stack trace:
The text was updated successfully, but these errors were encountered: