Add to layout file , block “collapselegend”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
............... }, legend: { view: true, height: 'inherit', top: 12, left: 23, right: 110, padding: [0, 0, 0, 0], more:true }, collapselegend: { view: true, height: 15, top: 12, left: 5, width: 15, collapseopen:false, title_1:"+", title_2:"-" }, watermark: { view: true, bottom: 30, left: 40, width:200, height:40, padding: [0, 0, 0, 0] }, .............. |
Where
collapseopen:false|true
Status for start show legend or hide
title_1and title_2
Symbol for show / hide legend