When using fill-extrusions on a map with terrain enabled, since #10347 the extrusion ceiling will be flat. This is good for buildings, but per https://github.com/mapbox/mapbox-gl-js/issues/10170#issuecomment-770496123 sometimes you might want these extrusions to follow the terrain.
One example is for vegetation extrusions to show forest areas of a fixed height above the terrain.
The user could split the polygons but they still would be flat, just stepped. A smoother extrusion which follows the terrain could only be achieved my unlocking it with a style spec property.
Using a style spec property which defaults to flat allows backwards compatibility, but still supporting curved extrusion ceilings.
It's fine if this is not something you're keen on implementing, but thought I'd raise this ticket for further discussion since the existing ones were closed out.
@karimnaaji started work on scoping the mechanism.
@andrewharvey ,
One example is for vegetation extrusions to show forest areas of a fixed height above the terrain.
Do you see that it would be beneficial to style it differently?
E.g.
cc @karimnaaji @asheemmamoowala
Do you see that it would be beneficial to style it differently?
For the vegetation use case, I don't think that's too important.
Some other interesting use cases for such a property: https://cameronwkruse.com/home/projects/glacslide/.
Some considerations to properly support the non-flat case:
Most helpful comment
Some other interesting use cases for such a property: https://cameronwkruse.com/home/projects/glacslide/.
Some considerations to properly support the non-flat case: