[Bug] DataFilterExtension not working with ScenegraphLayer and IconLayer
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Description
Description
It seems that the DataFilterExtension is not working with ScenegraphLayer and IconLayer. It works just fine with GeoJsonLayer.
As soon as the property extensions: [new DataFilterExtension({ categorySize: 1 })], is added to the layer, the layer itself is no longer visible (with no errors in the console). Commenting out this line makes the layer visible again.
I tested using the same dataset for the three layers: ScenegraphLayer, IconLayer, and GeoJsonLayer. Only the last one works as expected. The documentation mentions limitations with some aggregation layers, but I did't find anything about those two layers.
Is this an expected behaviour?
Flavors
- Script tag
- React
- Python/Jupyter notebook
- MapboxOverlay
- GoogleMapsOverlay
- CartoLayer
- ArcGIS
Expected Behavior
Filter data also on ScenegraphLayer and IconLayer.
Steps to Reproduce
Codepen here https://codepen.io/vsigno/pen/eYaEzwG just uncomment line 35 and the Icon will disappear
Environment
- Framework version: deck.gl@latest
- Browser: Edge
- OS: Win
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with the linked CodePen reproduction, testing the same DataFilterExtension configuration on IconLayer and ScenegraphLayer and comparing it with GeoJsonLayer. Then inspect the corresponding layer and extension entry points and existing tests, if present; done means the two layers remain visible and filter data as expected, or the limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100