Skip to content

A variation of Erik Boeson's MHS seniormap without student portraits or names for the MHS counseling department.

License

Notifications You must be signed in to change notification settings

apc-mhs/counselorseniormap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeniorMap

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.

Map Screenshot

Maintenance instructions

Setting up the development enviroment on your computer

All students who wish to work on the seniormap will have to set up the website on their own computer.

  1. Clone the Github repository found at https://github.com/apc-gmhs/seniormap onto your computer.
  2. Get in contact with an APC leader to request the developement key for the Google Maps API.
  3. Enter the key into this URL: https://maps.googleapis.com/maps/api/js?key=DEVELOPEMENTKEYGOESHERE&callback=initMap found at the bottom of index.html
  4. 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: image 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)
  5. Please change the developement key you entered back to the production key before commiting your changes.

Creating the form and spreadsheet for a new year

  1. 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.
  2. Make a copy of a previous year's form and edit content accordingly for the appropriate year.
  3. Ensure the form has a linked Google spreadsheet with the appropriate fields. Screenshot of creating linked spreadsheet
  4. Publish the spreadsheet to the web (File > Share > Publish to web; link will then be provided).
  5. Add the Trimmer.gs script to the spreadsheet (Extensions > Apps Scripts > paste in).
  6. Save the code, then click "Select Code Function" and choose "installTriggers." Then click the play button.

Adding the new year to the code base

  1. 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'],
  2. 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.
  3. 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. Screenshot of 'Year Data' cells.
  4. 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.

Obtaining and readying senior portraits of students

  1. 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.
  2. 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.
    • These images will be in alphabetical order with file names of 00001.jpeg, 00002.jpeg, etc. Screenshot of numbered senior portraits
  3. Download all of the photos from Google Drive into a folder on your desktop.
  4. Download the photo naming script available at resources/tools/namePictures.py.
  5. 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.
  6. 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.
  7. 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
  1. Create a new folder inside of the seniormap-portraits bucket named with the corresponding year.
  2. Upload the pictures to that folder.

Adding a new student to the map after form submission

  1. After a student submits the form, a new entry will appear in the the corresponding spreadsheet.
  2. If the student appears on the map, highlight the entry in green to indicate they're visible.
  3. 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. Screenshot of coordinate cells Screenshot of logo cells
    • 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. Screenshot of console errors
  4. After ensuring the student appears, mark them visible!

Passing the map onto future classes

  1. 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.
  2. Request their personal email address and transfer ownership of the Senior Map Google Cloud Project to them.
  3. 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.
  4. Give their student email account ownership of the Senior Map Stats Processor Google Apps Script.
  5. 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:

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.

About

A variation of Erik Boeson's MHS seniormap without student portraits or names for the MHS counseling department.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published