πLab Assignment #2 - Functional events¶
Due 7/10¶
In this lab, we learned how JavaScript functions that can be used for automating tasks. Functions also form the basis of the JavaScript programming we will be doing. Your assignment this week is to create a map for your portfolio with relevant points and have buttons that interact with the map.
The requirements are:
- Add at least 3 markers to the map using a JavaScript function (these markers can be same as lab assignment #2)
- Use the
<button>
element to execute a JavaScript function to interact with your map - Add an Event Listener that executes the JavaScript function to interact with your map
- Markers should have popups that describe what the point is.
Extra Credit¶
- Use something else like images or text to move the map.
- Style the buttons or markers
- Try something new with the MapLibre API.
Submission¶
-
Find your
index.html
in theweek2
in GitHub Pages and copy the URL. It should look something like this: -
https://albertkun.github.io/24SU-ASIAAM-191A-Assignments/week2/index.html
-
Paste your link as a comment in the Discussion forum for Lab Assignment #2:
- https://github.com/albertkun/24SU-ASIAAM-191A/discussions/37