var map; var gmarkers = []; var infowindow; var loc_list; var center = new google.maps.LatLng(1, 2); function HomeControl(controlDiv, map){ controlDiv.style.padding = '5px'; var controlUI = document.createElement('DIV'); controlUI.id = 'pb_button'; controlUI.title = 'Powered by: Helios Calendar'; controlDiv.appendChild(controlUI); var controlText = document.createElement('DIV'); controlText.innerHTML = 'Visit VU Calendar'; controlUI.appendChild(controlText); google.maps.event.addDomListener(controlUI, 'click', function() { window.location.href = 'https://events.vanderbilt.edu'; }); } function initialize() { var myOptions = { zoom: 12, center: center, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU }, scaleControl: true, scaleControlOptions: { position: google.maps.ControlPosition.BOTTOM_LEFT }, zoomControl: true, zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL, position: google.maps.ControlPosition.TOP_LEFT }}; map = new google.maps.Map(document.getElementById('map_canvas'), myOptions); setMarkers(map, locations); infowindow = new google.maps.InfoWindow({content: ''}); var homeControlDiv = document.createElement('DIV'); var homeControl = new HomeControl(homeControlDiv, map); homeControlDiv.index = 1; map.controls[google.maps.ControlPosition.TOP_RIGHT].push(homeControlDiv); } var locations = [ ["2173"," Engineering & Science Bldg","36.1457192","-86.8066559"," Engineering & Science Bldg","Highland Ave","","Nashville","TN","","37240","21","Thursday, August 16, 2018","0",""], ["982","214 Light Hall","36.1666667","-86.7833333","214 Light Hall","VUMC","","Nashville","TN","","","12","Monday, August 20, 2018","0",""], ["931","2525 West End Ave. ","36.1447","-86.8027","2525 West End Ave. ","","","","TN","","","2","Thursday, August 16, 2018","0",""], ["2197","3131 MRB III","35.5174913","-86.5804473","3131 MRB III","","","","TN","","","1","Friday, August 24, 2018","0",""], ["1150","512 Light Hall","36.1421640","-86.8024230","512 Light Hall","2215 Garland Ave","","Nashville","TN","","37232","2","Thursday, August 16, 2018","0",""], ["1167","898J PRB (VICC seminar room)","36.1447","-86.8027","898J PRB (VICC seminar room)","","","","TN","","","1","Friday, August 24, 2018","0",""], ["1084","Barnes and Noble at Vanderbilt","36.1463543","-86.8083744","Barnes and Noble at Vanderbilt","2501 West End Avenue",""," Nashville","TN","","37203","7","Saturday, September 22, 2018","0",""], ["2021","Benson Hall","36.1447","-86.8027","Benson Hall","","","","TN","","","1","Wednesday, August 29, 2018","0",""], ["786","Benson Old Central","36.145025","-86.802138","Benson Old Central","2119 West End Ave","","Nashville","TN","USA","37240","1","Thursday, November 01, 2018","0",""], ["1003","Benton Chapel","36.1466434","-86.8004108","Benton Chapel","411 21St Ave S.","","Nashville","TN","United States","37240","1","Tuesday, October 09, 2018","0",""], ["900","Biological Sciences Building/Medical Research Building (MRB) III ","36.1445701","-86.8003339","Biological Sciences Building/Medical Research Building (MRB) III ","465 21st Ave S","","Nashville","TN","","37232","1","Wednesday, April 10, 2019","0",""], ["1528","Bishop Joseph Johnson Black Cultural Center","36.1489935","-86.8041151","Bishop Joseph Johnson Black Cultural Center","Black Cultural Center Building","2301 Vanderbilt Place ","Nashville","TN","United States","37235","20","Saturday, August 18, 2018","0",""], ["847","Blair School of Music","36.145704","-86.806011","Blair School of Music","2400 Blakemore Ave","","Nashville","TN","USA","37212","3","Wednesday, September 19, 2018","0",""], ["1025","Blair School of Music, Ingram Hall","36.1412135","-86.8027772","Blair School of Music, Ingram Hall","2400 Blakemore Avenue","","Nashville","TN","","37212","16","Sunday, September 02, 2018","0",""], ["788","Buttrick Hall","36.14795","-86.802562","Buttrick Hall","390 24th Ave S","","Nashville","TN","USA","37240","2","Thursday, August 16, 2018","0",""], ["762","Central & Divinity Libraries","36.149464","-86.800204","Central & Divinity Libraries","419 21St Ave S","","Nashville","TN","USA","37240","18","Tuesday, August 21, 2018","0",""], ["1117","Children's Hospital - Theater","36.1392019","-86.8025827","Children's Hospital - Theater","2200 Children's Way","","Nashville","TN","","37232","4","Wednesday, September 05, 2018","0",""], ["754","Cohen Memorial Hall","36.141554","-86.799382","Cohen Memorial Hall","1220 21St Ave S","","Nashville","TN","USA","37212","1","Thursday, August 30, 2018","0",""], ["938","Community Room, Jean and Alexander Heard Library","36.1443747","-86.8027437","Community Room, Jean and Alexander Heard Library","Vanderbilt University","","Nashville","TN","United States","37204","3","Thursday, August 30, 2018","0",""], ["1074","E. Bronson Ingram Studio Art Center","36.1449800","-86.8068573","E. Bronson Ingram Studio Art Center","1204 25th Avenue South","","nashville","TN","United States","37240","11","Thursday, August 16, 2018","0",""], ["954","Eskind Biomedical Library","36.1421640","-86.8024230","Eskind Biomedical Library","2209 Garland Ave","","Nashville","TN","","37232-8340","1","Wednesday, September 05, 2018","0",""], ["780","Garland Hall","36.144991","-86.80157","Garland Hall","2117 West End Ave","","Nashville","TN","USA","37240","1","Friday, September 21, 2018","0",""], ["770","Godchaux Nursing Annex","36.13916","-86.80073","Godchaux Nursing Annex","461 21St Ave S","","Nashville","TN","USA","37232","1","Tuesday, August 28, 2018","0",""], ["1033","Green Hills Office Building","36.1426398","-86.8001068","Green Hills Office Building","VMG, 3841 Green Hills Village Drive","","Nashville","TN","","37232","3","Wednesday, September 19, 2018","0",""], ["1027","Jean and Alexander Heard Library","36.1447","-86.8027","Jean and Alexander Heard Library","","","","TN","","","3","Friday, October 05, 2018","0",""], ["789","Kirkland Hall","36.145216","-86.802795","Kirkland Hall","2201 West End Ave","","Nashville","TN","USA","37240","1","Friday, August 24, 2018","0",""], ["902","Light Hall ","36.1421640","-86.8024230","Light Hall ","2215 Garland Avenue","","Nashville","TN","USA","37232","22","Thursday, August 16, 2018","0",""], ["813","Margaret Cuninggim Women's Center","36.147387","-86.804724","Margaret Cuninggim Women's Center","316 West Side Row","","Nashville","TN","USA","37240","4","Thursday, September 06, 2018","0",""], ["995","Medical Center East (MCE)","36.1447","-86.8027","Medical Center East (MCE)","","","","TN","","","12","Thursday, August 16, 2018","0",""], ["930","Medical Center East, South Tower","36.1447","-86.8027","Medical Center East, South Tower","",""," ","TN","","","17","Tuesday, August 21, 2018","0",""], ["1036","Medical Center North ","36.1426398","-86.8001068","Medical Center North ","VUH","","Nashville ","TN","","37232 ","3","Thursday, August 30, 2018","0",""], ["944","Medical Center Plaza, North End ","36.1421640","-86.8024230","Medical Center Plaza, North End ","2215 Garland Avenue","","Nashville","TN","","37232","1","Wednesday, September 12, 2018","0",""], ["943","Monroe Carell Jr Children's Hospital","36.1388929","-86.8022694","Monroe Carell Jr Children's Hospital","2200 Childrens Way","","Nashville","TN","USA","37232","10","Thursday, August 16, 2018","0",""], ["825","Olin Hall","36.145719","-86.805245","Olin Hall","2400 Highland Ave","","Nashville","TN","USA","37212","1","Thursday, August 16, 2018","0",""], ["755","One Magnolia Circle","36.140573","-86.79949","One Magnolia Circle","110 Magnolia Cir","","Nashville","TN","USA","37212","1","Monday, October 01, 2018","0",""], ["907","Peabody Campus","36.1437507","-86.7964559","Peabody Campus","230 Appleton Place","","Nashville","TN","US","37203","1","Friday, September 14, 2018","0",""], ["750","Peabody Library","36.141371","-86.799203","Peabody Library","1210 21St Ave S","","Nashville","TN","USA","37212","1","Thursday, August 23, 2018","0",""], ["794","Rand Hall","36.145376","-86.803135","Rand Hall","2300 Vanderbilt Pl","","Nashville","TN","USA","37240","3","Thursday, August 30, 2018","0",""], ["1063","Robert Penn Warren Center","36.1462046","-86.8039011","Robert Penn Warren Center","2301 Vanderbilt Place","","Nashville","TN","","37235","1","Tuesday, September 25, 2018","0",""], ["800","Sarratt Student Center","36.145485","-86.803743","Sarratt Student Center","2302 Vanderbilt Pl","","Nashville","TN","USA","37240","26","Thursday, August 16, 2018","0",""], ["857","Schulman Center Hillel","36.146391","-86.806373","Schulman Center Hillel","2421 Vanderbilt Pl","","Nashville","TN","USA","37212","7","Thursday, August 16, 2018","0",""], ["2164","Steve and Judy Turner Recital Hall","36.1386200","-86.8060680","Steve and Judy Turner Recital Hall","2400 Blakemore Avenue","","Nashville","TN","","37212","25","Tuesday, September 04, 2018","0",""], ["1086","Stevenson Center","36.1457192","-86.8066559","Stevenson Center","","","Nashville","TN","","37240","1","Monday, August 27, 2018","0",""], ["720","The Commons - Dean's Residence","36.141981","-86.796658","The Commons - Dean's Residence","1235 18th Ave S","","Nashville","TN","USA","37212","1","Monday, October 01, 2018","0",""], ["728","The Commons Center","36.145359","-86.797159","The Commons Center","230 Appleton Pl","","Nashville","TN","USA","37212","1","Tuesday, September 11, 2018","0",""], ["1039","The Vanderbilt Clinic (TVC)","36.1426398","-86.8001068","The Vanderbilt Clinic (TVC)","1301 Medical Center ","","Nashville ","TN","","37232","5","Thursday, August 16, 2018","0",""], ["2206","The Wondry","36.1429026","-86.8059497","The Wondry","2414 Highland Ave","Suite 102","Nashville ","TN","USA","37212","4","Saturday, September 15, 2018","0",""], ["939","Vanderbilt Dyer Observatory","36.0527330","-86.8048080","Vanderbilt Dyer Observatory","1000 Oman Drive","","Brentwood","TN","","37027","10","Saturday, August 25, 2018","0",""], ["1090","Vanderbilt Health 100 Oaks","36.1080624","-86.7639372","Vanderbilt Health 100 Oaks","719 Thompson Lane","","Nashville","TN","","37204","18","Thursday, August 16, 2018","0",""], ["897","Vanderbilt Law School","36.1481438","-86.8000764","Vanderbilt Law School","131 21st Ave South","","Nashville","TN","USA","37203","3","Monday, August 27, 2018","0",""], ["2054","Vanderbilt Medical Center","36.1413237","-86.8017829","Vanderbilt Medical Center","1211 Medical Center Drive","","Nashville ","TN","","37232","1","Wednesday, September 19, 2018","0",""], ["1046","Vanderbilt Medical Group - Bone & Joint Clinic ","35.9065080","-86.8389200","Vanderbilt Medical Group - Bone & Joint Clinic ","206 Bedford Way","","Franklin ","TN","","37064-5526","2","Friday, September 21, 2018","0",""], ["1049","Vanderbilt Medical Group - Center for Women's Health OB/GYN","35.9516036","-86.8188681","Vanderbilt Medical Group - Center for Women's Health OB/GYN","2001 Mallory Ln, STE 100","","Franklin","TN",""," 37067-8213","2","Friday, August 17, 2018","0",""], ["1044","Vanderbilt Medical Group - Orthopedic Clinic ","35.9422130","-86.8288390","Vanderbilt Medical Group - Orthopedic Clinic ","324 Cool Springs Blvd.","","Franklin","TN","","37067","2","Friday, August 17, 2018","0",""], ["1045","Vanderbilt Medical Group - Williamson County","35.9178798","-86.8197744","Vanderbilt Medical Group - Williamson County","2105 Edward Curd Lane ","","Franklin ","TN","","37067","1","Friday, September 21, 2018","0",""], ["1115","Vanderbilt Psychiatric Hospital","36.1384700","-86.8040230","Vanderbilt Psychiatric Hospital","1601 23rd Ave. S.","","Nashville ","TN","","37212","8","Friday, August 17, 2018","0",""], ["2057","Vanderbilt University Fine Arts Gallery","36.1591258","-86.8050998","Vanderbilt University Fine Arts Gallery","1220 21st Avenue South","","Nashville","TN","","37203","3","Thursday, August 16, 2018","0",""], ["918","Vanderbilt University Hospital","36.1413920","-86.8019910","Vanderbilt University Hospital","1211 Medical Center Drive","","Nashville","TN","USA","37232","361","Tuesday, August 21, 2018","0",""], ["1900","VUH 4203","36.1414463","-86.8015694","VUH 4203","1211 Medical Center Drive","","","TN","","","4","Tuesday, September 04, 2018","0",""], ["769","Wilson Hall","36.14068","-86.800694","Wilson Hall","111 21St Ave S","","Nashville","TN","USA","37240","3","Thursday, August 23, 2018","0",""], ]; function setMarkers(map, markers) { for (var i = 0; i < markers.length; i++) { if(markers[i] != undefined){ var location = markers[i]; var siteLatLng = new google.maps.LatLng(location[2], location[3]); var marker = new google.maps.Marker({ position: siteLatLng, map: map, title: location[1], html: '
'+location[1]+''+setIW(location)+'
', icon: 'https://events.vanderbilt.edu/img/pins/default.png' }); google.maps.event.addListener(marker, 'click', function(){ infowindow.setContent(this.html); infowindow.open(map, this); }); gmarkers.push(marker); } } } function setIW(loc){ var iw = (loc[5] != '') ? '' + loc[5] + '' : ''; iw += (loc[6] != '') ? ''+loc[6]+'' : ''; iw += (loc[7] != '') ? ''+loc[7]+'' : ''; iw += (loc[8] != '') ? ''+loc[8]+'' : ''; iw += (loc[10] != '') ? ''+loc[10]+'' : ''; iw += (loc[9] != '') ? ''+loc[9]+'' : ''; iw += (loc[13] == 1) ? 'Website: Click to Visit' : ''; iw += (loc[14] != '') ? 'Phone: '+loc[14]+'' : ''; iw += (loc[2] != '' && loc[3] != '') ? ''+loc[2]+', '+loc[3]+'' : ''; iw += (loc[11] != '') ? 'Events: '+loc[11]+'' : 'Events: 0'; iw += (loc[12] != '') ? 'Next Event: '+loc[12]+'' : ''; return iw; } function showIW(loc){ map.setZoom(16); google.maps.event.trigger(gmarkers[loc], 'click'); }