Created the getType function to know the types of the layers