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

Negative fill extrusions #3401

Open
averas opened this issue Oct 18, 2016 · 6 comments
Open

Negative fill extrusions #3401

averas opened this issue Oct 18, 2016 · 6 comments

Comments

@averas
Copy link
Contributor

averas commented Oct 18, 2016

First things first: Amazing work on the extrusion fills and 3D buildings support!

One thing that immediately struck me given my own use cases: Has negative (below surface level) extrusions been considered? I naïvely tried setting negative values, but that did not render expected results (it seems the extrusions wrapped and the height became very high instead).

Cases where this might be interesting is showing sub-surface shafts or parking areas, or, as in my case, bathymetric levels for lakes.

A potential challenge is how to handle the background layer which will cover anything below what is "surface level" today. Perhaps the background layer could to be rendered at a z-level similar to any locally present negative extrusions.

@mike-marcacci
Copy link
Contributor

That's interesting – perhaps this is more related to terrain elevation (#1489) than building extrusion?

@averas
Copy link
Contributor Author

averas commented Oct 18, 2016

@mike-marcacci Ah, yes. Related thread indeed. Probably the bathymetry stuff I mentioned is more of a 3D terrain use case (where you have DEMs spanning over entire regions) while shafts etc. is probably more suited for something like negative extrusions (where you have heights assigned to individual features).

@lbud
Copy link
Contributor

lbud commented Oct 18, 2016

@averas Mapbox GL is fundamentally designed as a 2D map renderer, and renders layers additively, so rendering negative extrusions (cutting into other layers features, rendered to the z0 plane) would be a huge refactor and is not currently on our roadmap. But it does sound like for your use case #1489 may be good ticket to follow :)

@douglasg14b
Copy link

With the addition of 3D features, would it be possible to now do these negative extrusions (For example, to make a pit)?

@astojilj
Copy link
Contributor

Reopening this one and we'll take another look.

@astojilj astojilj reopened this Jan 19, 2024
@iskandari
Copy link

In light of the growth of indoor GIS apps, is there a roadmap for enabling negative extrusions below the z0 plane?

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

No branches or pull requests

7 participants