question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataFilterExtension with OR conditions

See original GitHub issue

Hello,

I’m having fun playing with deckgl latetly and i’m considering using it for coorporate projects.

I want to filter dynamically 12000+ polygons in a geojson that are categorized into 4 categories. It’s working great when i want to filter one category, it’s fast as light.

getFilterValue: f => [f.properties.aocid], //1,2,3,4
filterRange: [1,1],
extensions: [new DataFilterExtension({filterSize: 1})],

or if i want to display 1 and 2 and 3. but it seems there is no way to show ONLY 1 and 3… or am i wrong ?

Thank you for your time,

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
zogscommented, Sep 18, 2020

oh yeah i forgot about that !! Thank you sir @Clebal , it’s working great and still fast as light !!

i will continue my exploration of deckgl, so much things to try !

going to close this. thanks

0reactions
Clebalcommented, Sep 18, 2020

@zogs you have to use updateTriggers to inform deck to reevaluate getFilterValue after displayedAocid changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataFilterExtension - deck.gl
The DataFilterExtension adds GPU-based data filtering functionalities to layers. It allows the layer to show/hide objects based on user-defined properties. This ...
Read more >
Once I have a DataFilterExtension … | Apple Developer Forums
I have a suspicion I'm getting the denied permission because of Entitlements. My entitlements look like this: DataFilterExtension
Read more >
deck.gl - What causes 'Model needs a program' with a ...
DataFilterExtension to my deck.gl GeoJSON-layer to be able to filter some polygons. The following is the core of my setup; I hope I'm...
Read more >
deck.gl | TextLayer
DataFilterExtension · FillStyleExtension · Fp64Extension · MaskExtension · PathStyleExtension. @deck.gl/json. @deck.gl/json · JSONConverter.
Read more >
@turf/boolean-contains examples - CodeSandbox
spatial-filter-in-renderSubLayers-using-DataFilterExtension · Clebal · wizardly-brook-47wnp · agitated-saha-rtmxc · mauricei_docudata.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found