map is created wen an activity is created