adding check for no layers selected when trying to add to a map