I don't know what your traying to do but.. try
this:
if (Input.GetButtonDown("Mapswitch") && map2active == false && map1active == true)
{
map1.SetActive(false);
map2.SetActive(true);
map1active == false;
map2active == true;
}
else if (Input.GetButtonDown("Mapswitch") && map2active == true && map1active == false)
{
map1.SetActive(true);
map2.SetActive(false);
map1active == true;
map2active == false;
}