+ options.sidebar.addPane($ui);
+
+ this.onAddPane(map, button, $ui, toggle);
+
+ function toggle(e) {
+ e.stopPropagation();
+ e.preventDefault();
+ if (!button.hasClass("disabled")) {
+ options.sidebar.togglePane($ui, button);
+ }
+ $(".leaflet-control .control-button").tooltip("hide");
+ }
+
+ return $container[0];
+ }
+
+ // control.onAddPane = function (map, button, $ui, toggle) {
+ // }