ScenegraphLayer Conditional Models/Questions
See original GitHub issueHi all!
I am looking into using the ScenegraphLayer. After reviewing the documentation I had a few questions that wasn’t completely clear…
- I see from the deck website example it is providing a static URL to the 3D model.
From the docs it states the scenegraph
can be a (URL|Object|Promise).
Would there be a way to display a different model based on a condition of a property/attribute passed as a part of the data
object?
-
I see the ScreengraphLayer inherits Base Layer. Safe to assume that I can pass binary attributes similar to PathLayer, TextLayer, etc?
-
I notice the deck website example runs a bit laggy on my machine. Wondering if there are any performance concerns I should be aware of?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jfuehner What comes to my mind when I see that code is that you want the layer to keep polling that callback (with some parameter
d
) and automatically change the model ifd.type
has changed?That’s not how deck.gl works. You need to rerender the layer to trigger a change.
@ibgreen Got it, sounds like I will need to group/categorize my data and create multiple ScenegraphLayer’s.