openskope / skopeui

SKOPE user interface and visualization app
https://www.openskope.org
MIT License
0 stars 4 forks source link

Make legend opacity match layer opacity #152

Closed bocinsky closed 2 years ago

bocinsky commented 2 years ago

For reference, I'm trying to do this: https://geoserver.openskope.org/geoserver/SKOPE/wms?FORMAT=image%2Fpng&LAYER=SKOPE%3Apaleocar_v2_ppt_water_year_1500&LEGEND_OPTIONS=layout%3Avertical%3Bdx%3A10&REQUEST=GetLegendGraphic&VERSION=1.0.0&ENV=opacity:0.5

Note the ENV query param at the end, which allows you to dynamically set the opacity (but has to be enabled in the layer style).