diff --git a/2025/distribution-locations/distribution-locations.min.html b/2025/distribution-locations/distribution-locations.min.html new file mode 100644 index 00000000..307534dc --- /dev/null +++ b/2025/distribution-locations/distribution-locations.min.html @@ -0,0 +1 @@ +Chicago Maroon Distribution Locations Map
diff --git a/2025/distribution-locations/index.html b/2025/distribution-locations/index.html new file mode 100644 index 00000000..905680c6 --- /dev/null +++ b/2025/distribution-locations/index.html @@ -0,0 +1,30 @@ + + + + Building Locations Map + + + +
+ + + + + + + + + + + diff --git a/2025/distribution-locations/locations.csv b/2025/distribution-locations/locations.csv new file mode 100644 index 00000000..70892856 --- /dev/null +++ b/2025/distribution-locations/locations.csv @@ -0,0 +1,38 @@ +Name,Location,Person,Date Checked,Latitude,Longitude,,Comment +Arley D Cathey Dining Commons,"6031 S Ellis Ave, Chicago, IL 60637",,,41.78530807,-87.60038752,, +Baker Dining Hall,"5501 S University Ave, Chicago, IL 60637",,,41.79460805,-87.59853524,, +Bartlett Dining Hall,"5640 S University, Chicago, IL 60637",,,41.79209186,-87.59825325,,Box in lobby +Cafe 53,"1369 E 53rd St, Chicago, IL 60615",,,41.79950073,-87.59241523,,Lobby +Campus North Dormitory,"5500 S University Ave, Chicago, IL 60637",,,41.79472825,-87.59839296,,Hand to Front Desk +Center for Environmental and Urban Studies,"1155 E 60th St, Chicago, IL 60637",,,41.785594, -87.597118,,Lobby +Chicago Maroon Office,"1212 E 59th St, Chicago, IL 60637",,,41.78813297,-87.59560119,,Lobby +Cobb Hall,"5811 S Ellis Ave, Chicago, IL 60637",,,41.78912416,-87.60087036,,Lobby +Crerar Library,"5730 S Ellis Ave, Chicago, IL 60637",,,41.79065996,-87.60287546,,Box in lobby +Harper Library,"1116 E 59th St, Chicago, IL 60637",,,41.78809116,-87.59963425,,Lobby +Hutchinson Commons,"5706 S University, Chicago, IL 60636",,,41.79133035,-87.59865383,,Box on first floor +Ida Noyes Hall,"1212 E 59th St, Chicago, IL 60637",,,41.78812697,-87.59559407,,Box on 2nd floor +International House,"1414 E 59th St, Chicago, IL 60637",,,41.78861562,-87.591124,,Lobby +Jimmy's Woodlawn Tap,"1172 E 55th St, Chicago, IL 60615",,,41.795191,-87.596835,,Lobby +Logan Center for the Arts,"915 E 60th St, Chicago, IL 60637",,,41.78572927,-87.6038694,,Lobby +Max P Central,"1101 E 56th St, Chicago, IL 60637",,,41.79309676,-87.59989302,,Box in lobby +Max P East,"1101 E 56th St, Chicago, IL 60637",,,41.79309676,-87.59989302,,Lobby +Max P West,"1101 E 56th St, Chicago, IL 60637",,,41.79309676,-87.59989302,,Lobby +Medici,"1327 E 57th St, Chicago, IL 60637",,,41.79135596,-87.59369253,,Store +Philz Coffee,"1425 E 53rd St Chicago, IL 60615",,,41.79996809,-87.59056214,,Lobby +Quadrangle Club,"1155 E 57th St, Chicago, IL 60637",,,41.79106705,-87.5976016,,Wall-mounted box in Cafe +Ratner Athletic Center,"5530 S Ellis Ave, Chicago, IL 60637",,,41.79425466,-87.60161306,,Lobby +Regenstein Library ,"1100 E 57th St, Chicago, IL 60637",,,41.79238296,-87.60003983,,Box in basement +Renee Granville-Grossman Residential Commons,"6031 S Ellis Ave, Chicago, IL 60637",,,41.78472557,-87.60040261,,Lobby +Saieh Hall ,"5757 S University Ave, Chicago, IL 60637",,17-Jan,41.79000616,-87.59728728,,Lobby +Seminary Co-Op,"5751 S Woodlawn Ave, Chicago, IL 60637",,,41.79024926,-87.59614453,,1st floor +Snell-Hitchcock,"1009 E 57th St, Chicago, IL 60637",,,41.79122476,-87.6005054,,Lobby +Starbucks (53rd),"1530 E 53rd St, Chicago, IL 60615",,,41.80031839,-87.58764545,, +Starbucks (55th),"1174 E 55th St, Chicago, IL 60615",,,41.79592543,-87.59605769,, +Stuart Hall,"5835 S Greenwood Ave, Chicago, IL 60637",,,41.78856856,-87.59904566,, +The Study UChicago,"1227 East 60th Street, Chicago, IL 60637",,,41.78609407,-87.59516549,, +Trader Joe's,"1528 E 55th St, Chicago, IL 60615",,,41.796506,-87.588394,, +UChicago Institute of Politics,"5707 S Woodlawn, Chicago, IL 60637",,,41.79135305,-87.59618759,, +Woodlawn Dining Commons,"1156 E 61st Street Chicago, IL 60615",,,41.78490417,-87.59720576,, +Woodlawn Residential Commons,"1156 E 61st Street Chicago, IL 60615",,,41.78445557,-87.5971699,, +Booth School of Business,"5807 S Woodlawn Ave, Chicago, IL 60637",,,41.78994463,-87.59632936,, +Harris Cafe in The Keller Center,"1307 E 60th St, Chicago, IL 60637",Nathan,1/16/24,41.785689,-87.594053,, \ No newline at end of file diff --git a/2025/distribution-locations/main.js b/2025/distribution-locations/main.js new file mode 100644 index 00000000..5c0d69ef --- /dev/null +++ b/2025/distribution-locations/main.js @@ -0,0 +1,62 @@ + +// main.js (module) +async function initMap() { + const { Map } = await google.maps.importLibrary("maps"); + const { AdvancedMarkerElement } = await google.maps.importLibrary("marker"); + + const map = new Map(document.getElementById("map"), { + center: { lat: 41.79, lng: -87.59 }, + zoom: 14, + mapId: "43d4870cba142ed7", // Replace this with your actual Map ID + mapTypeId: "terrain" + }); + + const infoWindow = new google.maps.InfoWindow(); + + Papa.parse("locations.csv", { + download: true, + header: true, + complete: function (results) { + results.data.forEach((row) => { + const lat = parseFloat(row["Latitude"]); + const lng = parseFloat(row["Longitude"]); + if (isNaN(lat) || isNaN(lng)) return; + + const container = document.createElement("div"); + container.style.width = "32px"; + container.style.height = "32px"; + container.style.pointerEvents = "auto"; + + const img = document.createElement("img"); + img.src = "maroon_map_pin.svg"; + img.style.width = "32px"; + img.style.height = "32px"; + img.style.pointerEvents = "auto"; + container.appendChild(img); + const marker = new AdvancedMarkerElement({ + map, + position: { lat, lng }, + title: row["Name"], + content: container +}); + + // Create the content for the info window with building name and address + let content = ` +
+

${row['Name']}

+

Address: ${row['Location']}

+ ${row['Comment'] ? `

Pick-Up Notes: ${row['Comment']}

` : ''} +
+`; + + // Add a click listener to show the info window when the marker is clicked + marker.addListener('gmp-click', function () { + infoWindow.setContent(content); + infoWindow.open(map, marker); + }); + }); + } + }); +} + +initMap(); \ No newline at end of file diff --git a/2025/distribution-locations/maroon_logo_m_black.svg b/2025/distribution-locations/maroon_logo_m_black.svg new file mode 100644 index 00000000..2f29c174 --- /dev/null +++ b/2025/distribution-locations/maroon_logo_m_black.svg @@ -0,0 +1,3 @@ + + + diff --git a/2025/distribution-locations/maroon_map_pin.svg b/2025/distribution-locations/maroon_map_pin.svg new file mode 100644 index 00000000..1d380391 --- /dev/null +++ b/2025/distribution-locations/maroon_map_pin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/2025/distribution-locations/meta_data.json b/2025/distribution-locations/meta_data.json new file mode 100644 index 00000000..13737b80 --- /dev/null +++ b/2025/distribution-locations/meta_data.json @@ -0,0 +1,4 @@ +{ + "description": "An updated map of the Chicago Maroon's distribution locations", + "title": "Distribution Locations" +} diff --git a/package-lock.json b/package-lock.json index 84b72755..ee826451 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "htmlprocessor": "^0.3.2", "minify": "^9.2.0", "minimist": "^1.2.8", - "prettier": "2.8.3" + "prettier": "^2.8.3" } }, "node_modules/@jridgewell/gen-mapping": { @@ -403,6 +403,7 @@ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz", "integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin-prettier.js" }, diff --git a/package.json b/package.json index 3c431720..1d9e24a9 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,6 @@ "htmlprocessor": "^0.3.2", "minify": "^9.2.0", "minimist": "^1.2.8", - "prettier": "2.8.3" + "prettier": "^2.8.3" } }