-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
featuresAt: replace includeGeometry with omitGeometry #1552
Comments
The API should promise to answer what feature is under the mouse cursor. It's actually very rare to really need the geometry of a feature — can't really think of a good use case. But the performance hit is MASSIVE. So I'm in favor of keeping things as is, and change the expectations by improving the docs instead. |
I disagree -- I think it's actually pretty common. I just filed this because I was looking at #1527, one of the most popular examples, where the geometry is desired. The #1 most popular example also requires it. |
I feel like these examples are a bit artificial — calling |
This is probably a horrible suggestion, but I'll make it anyway: what about just renaming it to something like |
I think we'll need to find a solution that's both user-friendly and performant. If the bottleneck is computing the geographic coordinates from VT coordinates, then we could have the worker return raw VT coordinates and make each feature's |
@jfirebaugh that would be great. Full GeoJSON conversion happens regardless of |
|
For an API that promises to return GeoJSON objects, the default should be to return valid GeoJSON objects. Omitting the geometry as an optimization should be the non-default behavior.
The text was updated successfully, but these errors were encountered: