-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature request: make fill-extrusion vertical gradient configurable #5768
Comments
Have you tried playing with the lighting settings to see if that, um, sheds any light? Does it happen the same when you're only rendering that bottom layer? (Ie, is it affected by the presence of higher levels?) |
Currently this is expected behavior; the fill-extrusion shader adds a slight vertical gradient to provide some visual contrast between features (it was originally written primarily with a 3D building use case in mind). I'm going to reframe this ticket as a feature request: I'd be open to adding a paint property to make this configurable. |
Thanks very much @lbud. Yes, this would be a useful feature for our case. |
Hi @lbud, I'm following up on this issue. Has this feature been implemented? If not, there is any chance we could have some sort of idea on its ETA and also can you point me in the direction of a workaround in the meantime? Thanks. |
@nmccrea-db I am trying to achieve the same result on the map like yours, extruding multiple polygons on the same position, one on top of the other. But I cannot get mapbox to do it. Can you please take a look here ? Thanks |
Hey folks. Thanks for making such an amazing platform.
I'm using mapbox-gl-js 0.42.2. I am representing a stack of blocks on a map using fill extrusions. The problem I'm having is that the lowest blocks are shaded slightly darker than the blocks above them. Here is an example:
In this example, all four blocks that are pointed out are given the same paint color (in this case,
white
). But the lowest two are rendered slightly darker than the higher two. Above the first two levels, there are no other inconsistencies.It appears to have something to do with the elevation of the blocks. For example, if I make the bottom-most block thicker, and thus raise the elevation of the second block, then the inconsistency only affects the first block:
The problem exists regardless of what color paint is being used:
And regardless of opacity:
This is in a geoJSON layer. The geoJSON is produced like this:
And the paint is defined as follows:
For my application, the coloring of the blocks is an important visual indicator, so any insight into how I might be able to make the coloring stay consistent would be greatly appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: