Open heshan0131 opened 5 years ago
@heshan0131 I am looking at turf.js, should we use:
or are there another methods we should use?
The new polygon filter will be treated as a regular filter and added to Filters in vis-state. Because the each new polygon filter will required to be mapped against an existing layer, we need to properly create a connection between a filter and layer.
@macrigiuseppe I can see that the filter by drawn polygon works but was the filter by a geojson layer ever implemented? I am not seeing this in the demo app.
+1 to @seanosterday's comment. It is unclear what I can presently accomplish with the draw tool in the demo app. I created a shape and added a data layer to the "Geo" filter but when I go to export "filtered data" the # of rows in the dataset are exactly the same, regardless of how restrictive my polygon is
@macrigiuseppe I can see that the filter by drawn polygon works but was the filter by a geojson layer ever implemented? I am not seeing this in the demo app.
@seanosterday we currently don't support filter by geojson layer
export "filtered dat
@maxwell-oroark i have tried the export functionality after filtering points using the draw tool and it works. See below:
Allow an option to ‘filter points by polygon’ in point layer, select polygons inside a Geojson layer or a polygon drew by the user to filter by.
Use turf.js to filter points inside or outside of the selected polygon.
Allow an option to filter arcs/lines by whether it begins or end inside the polygon.