Skip to content
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 via carto.js 4 #1133

Open
jdgodchaux opened this issue Oct 21, 2019 · 0 comments

Comments

@jdgodchaux
Copy link

Cross posting CartoDB/carto.js#2237 , which appears to be a Windshaft feature request and not a carto.js feature request. Here is the original issue for context:

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:

the problem I’m facing is to apply a shape filter (circle, polygon) to a dataview. I’m aware you can change the sql on the source, but this affects how the layer is displayed. We need to have the layer unmodified on screen, then the user draws a shape, and some data from a dataview is returned based on that shape, without affecting the source. I opened this question on SO:

https://gis.stackexchange.com/questions/334156/apply-a-polygon-filter-to-cartojs-4-dataview

There is a way to achieve this through the dataviews?

Checking the carto 4.1.12-1, the line 19290 is where the code for boundingbox is declared. Probably will not be a huge enterprise to extend this to accept an array on lat/lngs. It is possible for your team to add this poly support? Or at least someone can guide me a little bit, so I can write the code to support the polygons? This is something very important for us. Later in the future a support for a circle would be great too.

Support Issue and Zendesk tickets for more context

CartoDB/support#2202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant