An interactive map of GMHS seniors' college/postsecondary destinations. Created by Erik Boesen (GMHS Class of 2019), the map is now maintained by the GMHS Advanced Programming Club. If you'd like to make a submission, please visit the map and click on the form in the bottom left corner.
All students who wish to work on the seniormap will have to set up the website on their own computer.
- Clone the Github repository found at https://github.com/apc-gmhs/seniormap onto your computer.
- Get in contact with an APC leader to request the developement key for the Google Maps API.
- Enter the key into this URL: https://maps.googleapis.com/maps/api/js?key=DEVELOPEMENTKEYGOESHERE&callback=initMap found at the bottom of index.html
- When you are done making your changes, you cannot simply open index.html in your web browser. Doing so will result in the following error: You must create a http server locally. In the root of the seniormap project enter the command
python3 -m http.server 8080
. You can then visit your website with your changes at localhost:8080. (Note that the port, which is 8080 in the example, can be any port number that is not already in use) - Please change the developement key you entered back to the production key before commiting your changes.
- Navigate to the 'Senior Map' folder on Google Drive and create a new folder with the year of the graduating class (e.g. 2027). Request access to the folder if you do not already have access.
- Make a copy of a previous year's form and edit content accordingly for the appropriate year.
- Ensure the form has a linked Google spreadsheet with the appropriate fields.
- Publish the spreadsheet to the web (File > Share > Publish to web; link will then be provided).
- Add the Trimmer.gs script to the spreadsheet (Extensions > Apps Scripts > paste in).
- Save the code, then click "Select Code Function" and choose "installTriggers." Then click the play button.
- Within
js/scripts.js
, search for "README FLAG" and follow the instructions to add an entry, with the spreadsheet's datasheet URL for the appropriate year.- For example:
['2027', 'a8a8a8a8a8a8a8a8a8a8a8a8a8a'],
- For example:
- Create an entry for the student submission spreadsheet you created previously in the 'Year Data' sheet (Senior Map/Shared Data/Year Data). Mimick the existing entry cells and paste the datasheet URL next to the year you created.
- In the same spreadsheet, create an entry for the corresponding Google form submission link in the right adjacent cell. This link appear on the map so students can submit their post-secondary destination. .
- Navigate to the Senior Map Stats Processor and click "Run." This will synchronize the stats script with your new Google Sheet ID from the Year Data sheet.
- Email the GMHS registrar, Lynette Kemp, for a list of students in your grade. The registrar is the administrator who manages student enrollment and will have this information on hand; their contact information is listed in the GMHS staff directory.
- Email the yearbook club teacher lead and ask for senior portraits for the senior map. They will share a folder with you on Google Drive containing all the portraits.
- Download all of the photos from Google Drive into a folder on your desktop.
- Download the photo naming script available at
resources/tools/namePictures.py
. - Convert the spreadsheet of names into a 2D array to replace
[['firstname', 'lastname']]
.- For example
[['Bill', 'Axel'], ['Sally', 'Breeze'], ['Manuel','Collins']]
- There's a number of online tools that will do this for you, such as this site.
- For example
- Run the Python script, renaming all of the unnamed photos to their corresponding student names.
- It's important to note that both the array of names and the student photos must be aligned and set up correctly to function properly. For example if a student is present in the array, but doesn't have a photo, all of the photo's names will be off by one. Setting up the script correctly is a little bit time consuming, but far faster than manually renaming each photo.
- Compress all pictures in that folder using the compress.sh script (make sure you've installed NodeJS first). Move the script into your folder with senior portraits and run:
source compress.sh
- Create a new folder inside of the seniormap-portraits bucket named with the corresponding year.
- Upload the pictures to that folder.
- After a student submits the form, a new entry will appear in the the corresponding spreadsheet.
- If the student appears on the map, highlight the entry in green to indicate they're visible.
- If the student does not appear on the map, the college they are attending must be added .
- To do this, create a new entry in 'Shared Data' (Senior Map/Shared Data/Location Information) for both the coordinates and logos subsheets.
- Mimicking existing cells, add the coordinates, and the logo to the entries.
- A good way to see if certain schools don't have logos is by using the developer console. The names of institutions missing logos will appear here.
- After ensuring the student appears, mark them visible!
- Find an experienced leadership member of the APC who is a student in the next graduating class who is able and willing to take over the map.
- Request their personal email address and transfer ownership of the Senior Map Google Cloud Project to them.
- Give their student email account ownership of all Senior Map Google Drive folders AND files. They must be made an owner of ALL Senior Map files individually, as this prevents the files from getting removed when your own Google account is marked for deletion.
- Give their student email account ownership of the Senior Map Stats Processor Google Apps Script.
- Make sure they can access the Senior Map GitHub repository as editor.
If you have any questions about the codebase/maintaining it, or adding a new class to the page, don't hesistate to reach out to past maintainers, listed below:
- Erik Boesen, Class of 2019
- Andrew Lester, Class of 2021
- Jonathan Oppenheimer, Class of 2021
Also make sure you publicize the map to your class to carry on the tradition! Talk to your class officers about posting the map on Schoology, reach out to your college counselor about sending the map out and consider sharing the map on social media.