-
Notifications
You must be signed in to change notification settings - Fork 263
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
Feature request: Applying a shape filter (circle, polygon) to a dataview #2237
Comments
@VictorVelarde when you have some time would you mind taking a look at this request and make a rough estimate of the effort this would mean for us? @jdgodchaux I would talk with you in private to gather more information. |
👋 ! I've been taking a look at this and, as they said, there's no way to filter a dataview by any shape other than a bounding box. CARTO.js is not the one who filters the dataview or composes the SQL sentence that retrieves the data. Windshaft is the one who does that. We could modify the URL parameter and pass an array of values, but Windshaft wouldn't understand that. Here's the code which parses the So, from CARTO.js' side, we could create a filter for the source to filter a circle as they propose, but they would need to apply it to a different source than the one used in the layer, so that it doesn't affect the visualization, as they noted in their original message. They can do that already with their own SQL sentence. The optimal solution would be to support polygon filtering in Windshaft for dataviews, which I believe that is not ready right now. |
Hi @jesusbotella , @VictorVelarde , and @kukukaka , here's the response from our customer:
Would it be possible to evaluate what our customer is saying? |
This was already implemented |
Context
A customer would like to apply a shape filter (circle, polygon) to a dataview. The customer believes that we can extend bounding box filtering to irregular polygons and circles. See their comments here:
What level of effort is involved in adding this as a feature, and can we add this feature to CARTO.js?
Support Issue and Zendesk tickets for more context
https://github.com/CartoDB/support/issues/2202
The text was updated successfully, but these errors were encountered: