[Qgis-developer] should legends be shown for invisible layers ?

Sandro Santilli strk at keybit.net
Sat Dec 13 15:40:36 PST 2014

Does it make sense to show a layer's legend while the layer visibility is off,
or should the legend nodes in the layertree really be removed ?

I'm wondering as I move steps toward optimization of WMS legend construction
for cases in which it is not needed: http://hub.qgis.org/issues/11860

You probably don't want to incur in the cost of new WMS GetLegendGraphics
requests as you pan and zoom while the layer is invisible, but then would
you still want the last fetched legend visible in that case ?

The same applies to vector layers too, except the cost is much much lower
there. Does it make sense for map dependent legends to update while their
corresponding layer is invisible ? And to show the legend at all ?


 ()  ASCII ribbon campaign  --  Keep it simple !
 /\  http://strk.keybit.net/rants/ascii_mails.txt  

More information about the Qgis-developer mailing list