How do I add the data in the array to the map?