Skip to content
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

Question: I3S/3D-Tiles dynamic styling and filtering #2593

Open
enersis-pst opened this issue Aug 23, 2023 · 5 comments
Open

Question: I3S/3D-Tiles dynamic styling and filtering #2593

enersis-pst opened this issue Aug 23, 2023 · 5 comments

Comments

@enersis-pst
Copy link

Hello again,
after i asked the same question for over 2,5 years visgl/deck.gl#5493 i want to know if filtering and styling (like coloring) by feature properties is now possible on 3D-Tiles or I3S.
like the demo shows, at least coloring is possible right?

@ibgreen
Copy link
Collaborator

ibgreen commented Aug 24, 2023

A lot of work has been done on I3S specifically, some of these features are showcased in the I3S Explorer application https://i3s.loaders.gl

The Action Engine team can give you more information, @belom88 @dsactionengine

@dsavinov-actionengine
Copy link
Collaborator

Hi @enersis-pst ,
As mentioned, Action Engine has created a showcase called I3S Explorer, which in its viewer mode has colourization based on the values of an attribute.

A good demo would be the New York dataset with no textures but with statistics - https://i3s.loaders.gl/viewer?tileset=new-york. You can use the link, then click on any building, select an attribute, scroll down to "Colorize by Attribute" toggle and enable it.
Here is what it should look like (colourized by CNSTRCT_YR attribute):
image

We use values of attributes from the statistics and colourize the smallest values in light blue, while the highest values will receive the highest saturation. So there is a scale for colourization based on the values range:
image
That way a dataset with statistics in it should get good attributes colourization representation based on available attributes like construction year, height, sq meters size etc.

We have colour multiplication in development so that for the existing dataset colours on buildings would be multiplied with our colour. Further down could be more features like colour palette selection or others. Any comments or suggestions would be highly welcomed.

@enersis-pst
Copy link
Author

hey @ibgreen, @dsactionengine ,
thanks for the info.
Nice to see, thats this is going on.

For now we use the fill-extrusion layer of mapboxgl and use their style expression. My hope is that with your work we can also show complex building geometries on mapboxgl. Normally we color by category or value ranges, but than also needs additional colors for selecting and highlighting (there can be very complex rules). So it would be nice to write own color expression or at least a function to have the full functionality of coloring.

Is it also possible to filter the features by different properties?

@dsavinov-actionengine
Copy link
Collaborator

@enersis-pst
Hi again,
Sounds a bit too complex to discuss over text. Can you jump on a call with us so we can understand what you wish to achieve better?
Write me an email when you can meet and we will figure out something - daniil.savinov@actionengine.com

@ra2ge
Copy link

ra2ge commented Oct 30, 2023

Hi.
What is the status of dynamic styling for 3D Tiles?
I am interested in being able to apply styles to individual objects based on their properties. It would also be great to be able to select individual objects like in I3S. Is it currently possible to do either of these things? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants