Map overlays now turn off when legend is removed.