-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw ordering for points #20
Comments
Partially done with #70 The current implementation allows ordering the features based on the width property (this only works for points). Example: Default behavior (order is Maps API order, basically: no order): https://cartodb.github.io/renderer-prototype/example/mapbox.html#eyJhIjoidHhfMDEyNV9jb3B5X2NvcHkiLCJiIjoiIiwiYyI6ImRtYW56YW5hcmVzLWRlZDEzIiwiZCI6ImNhcnRvLXN0YWdpbmcuY29tIiwiZSI6IndpZHRoOiBzcXJ0KCRhbW91bnQvNTAwMCkqMjAqKHpvb20oKS80MDAwKzAuMDEpKjEuNVxuY29sb3I6IHJhbXAoJGNhdGVnb3J5LCBQcmlzbSlcbnN0cm9rZUNvbG9yOiAgICAgICByZ2JhKDAsMCwwLDAuNylcbnN0cm9rZVdpZHRoOiAgICAgIDIqem9vbSgpLzUwMDAwXG4iLCJmIjp7ImxuZyI6Mi4xNywibGF0Ijo0MS4zOH0sImciOjEzfQ== @makella Can you take a look? Do you consider this good enough to put a |
@davidmanzanares great! Just to clarify, is there any way to order based on width + an attribute? |
Done. |
If no one disagrees, I think we should expose the existing functionality in the documentation |
No objections from me. I do think that it was slowing some maps down and in those cases, people can order by in their data |
@davidmanzanares here is the issue i was seeing yesterday |
We should be able to order the features (for drawing) on the client.
Doing it on JS is not a viable option if we want to order by a dynamic property: i.e. it is too slow to reorder per frame.
I would try to do a PoC with a psudo ordering mechanism implemented with WebGL. My idea is to divide the features into buckets and draw each tile one time per bucket and GPU filtering out the features that don't belong to the bucket.
The text was updated successfully, but these errors were encountered: