Opportunity Connect Map | Team Review

CPT Requirements

Instructions for input from user:

The input is when they click on the marker which triggers an output. Screenshot 2024-02-28 at 1 29 41 PM

Use of at least one list (or other collection type):

This is a Map object used to store a unique collection of addresses (as keys) and their corresponding event titles (as values). This Map is created from the events array to ensure each address is unique, and only the last encountered title for that address is stored.Screenshot 2024-02-28 at 1 33 30 PM

At least one procedure that contributes to the program’s intended purpose:

My feature uses fetch and gets data from the API endpoint. Screenshot 2024-02-27 at 11 17 26 PM

An algorithm that includes sequencing, selection, and iteration:

This uses the forEach method to iterate over each marker in the markers array and add it to the map.Screenshot 2024-02-28 at 7 07 41 PM

Calls to your student-developed procedure:

The addListener method is called on marker instances to attach click event listeners to them. This is a procedure for handling events when markers are clicked. Screenshot 2024-02-28 at 7 13 02 PM

Instructions for output based on input:

It returns the addresses and latitude and longitude. Screenshot 2024-02-28 at 1 29 41 PM

CPT Video

Video