Finding the map type