Register show/hide events for mapbuf widget.