maplibre / maplibre-gl-js

MapLibre GL JS - Interactive vector tile maps in the browser
https://maplibre.org/maplibre-gl-js/docs/
Other
6.29k stars 685 forks source link

Per-feature fill-extrusion-opacity #4492

Open AbelVM opened 1 month ago

AbelVM commented 1 month ago

As of today, fill-extrusion-opacity is applied to the whole layer, not per feature

opacity: 1 image

opacity: 0.5 image

The user may want the entire extrusion layer to be transparent to show the 2D layers underneath, but other users may want to get a sense of the extruded features behind those in the foreground.

Maybe a flag or maybe decoupling this property in fill-extrusion-layer-opacity and fill-extrusion-feature-opacity would do the trick

AbelVM commented 1 month ago

Might be related to https://github.com/maplibre/maplibre-gl-js/issues/2559