πLab Assignment #4 - APIs and conditionals¶
Due 7/24 Wednesday¶
In this week’s lab, we learned how to loop through data and connect to an API. Your task is to create a mini-version of the final group project for the class that takes in data and maps it.
The requirements are:
- Use any type of for-loop within a JavaScript function that adds API data from your Google Spreadsheet form.
- Add data from Google Spreadsheets into your map using PapaParse
- Add an if-conditional statement to your loop that changes the marker based on the data
- Add a pop-up with at least 2 fields from the Google Form.
- Note: Your Google Form CANNOT be the same topic as the lab (COVID Vaccination)
Extra credit¶
- Style the markers based on the form data
- Add a legend describing the markers
Submission¶
- Commit your changes to GitHub
- Find your
index.html
in theweek5
folder and copy the URL. It should look something like this: - https://albertkun.github.io/24SU-ASIAAM-191A-Assignments/week5/index.html
- Paste your link as a comment in the Discussion forum for Lab Assignment #4:
- https://github.com/albertkun/24SU-ASIAAM-191A/discussions/51