==============
ol.control.Toggle
inherits fromol.control.Button
(this means you have to add the ol.control.Button.js to your pages).- Move subbar from
ol.control.Bar
tool.control.Toggle
.
Instead of:
var c = new ol.control.Toggle ();
bar.addControl (c, subbar);
use:
var c = new ol.control.Toggle ({ bar: subbar });
bar.addControl (c);
- add
autoActive
option tool.control.Toggle
to auto activate the control when inserted in a subbar - add
autoDeactivate
option tool.control.Bar
to auto deactivate all controls in a subbar when desactivating it