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

Differences between mapbox-3dtiles and fill-extrusion #45

Open
abrichr opened this issue May 11, 2021 · 2 comments
Open

Differences between mapbox-3dtiles and fill-extrusion #45

abrichr opened this issue May 11, 2021 · 2 comments

Comments

@abrichr
Copy link

abrichr commented May 11, 2021

Hello,

Thank you for making this open source!

I'm relatively new to MapBox. Could you please clarify what is the difference between this implementation, and the example at https://docs.mapbox.com/mapbox-gl-js/example/3d-buildings/ which uses a fill-extrusion layer? What are the tradeoffs for each approach? When would you prefer one over the other?

@dpelaez10
Copy link

I'm fairly new here as well, but from what I understand based on the documentation, the example you linked above uses a pre-built data source:

The data source for the building heights is the Mapbox Streets vector tileset, which provides data for the building layer in the light-v10 style.

Whereas with this plugin you can create your own custom 3D data sources from LiDAR point clouds or other 3D models.

So I'd say this plugin offers more customization, but may be more complicated to implement. If all you care about are buildings in 3D then maybe go with the example you listed above.

Cheers!

@ibrahimnzamane
Copy link

fill-extrusions are not real 3d tiles they are what call 2.5D which means that they are 2d but to look like 3d the polygons are extruded upwards. But, real 2dtiles have tiles in 3d that means that it will have a 3rd coordinate to represent height.

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

3 participants