DataFilterExtension filter data randomly depending on the zoom #8963
-
Hi, So I noticed some of the layers like IconLayer in deckgl renders the entire dataset in lower zoom levels. Which can be unnecessary. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
Pessimistress
Jun 20, 2024
Replies: 1 comment 8 replies
-
If your data is distributed uniformly you could try assign each point a random number: getFilterValue: d => Math.random(),
filterRange: [0, 1 - 2 ** (-zoom)] Otherwise CollisionFilterExtension will work in a more controlled fashion. |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
am2222
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If your data is distributed uniformly you could try assign each point a random number:
Otherwise CollisionFilterExtension will work in a more controlled fashion.