map panel

added toggle button, but did not handle the the switching of the modes
as per request