Replies: 2 comments 4 replies
-
The question of what to use for defaults is indeed tricky. Upstream, deck.gl has default values for virtually all parameters. So for example, if you look at the JS ScatterplotLayer docs, you'll see all the render options and data accessors. And the default for This also speaks to differences between the audience of the JS library and the Python library. Users of the JS library are usually building an application, where they use a single dataset or class of data, and spend a lot of time making it look good. Lonboard, on the contrary, is more often used for exploratory data analysis, where you might have lots of different datasets you want to inspect, and where just seeing your data is more important than exactly how it looks. This is the rationale between having Maybe Lonboard's layers should have defaults? But choosing a good default is really hard, and choosing when to apply those defaults is even harder. If a user passes in |
Beta Was this translation helpful? Give feedback.
-
I'm not sure whether the minimum or maximum radius should be used; either would probably work. Still, for users onboarding a lonboard, seeing their data without immediately diving into the intricacies of styling would make a difference. The benefit to user onboarding outweighs the tradeoff of potentially displaying the data in a style that is not quite proper. |
Beta Was this translation helpful? Give feedback.
-
Hey @kylebarron! I'm not sure if this is the right spot for this discussion. Please point me to the right path as needed.
So, I've been using lonboard with a hexagon dataset. I wanted to do more advanced styling, but it took me a moment to debug how to use the Scatterplotlayer. I thought I was encountering some issue because the points were not showing up on the map:
But the
viz()
function was rendering mygdf
without any issues:Turns out that the default radius was set to
None
:It seems
viz()
has some defaults where it sets the radius and the random color, while theScatterplotLayer
does not.Is this the expected behavior? There may be some reason I'm unaware of, but I would've expected the
ScatterplotLayer
to have the same default settings as theviz()
function.Beta Was this translation helpful? Give feedback.
All reactions