var loc = {"id":"17","name":"Simmons Hall","abbreviation":"SI","address":"277 East Buchtel Avenue","markdown":null,"image_file":"simmons-hall-400px.jpg","active":"Y","lng":"-81.5115755796","lat":"41.0782876478","updated_at":"2023-10-19 20:14:59","created_at":"0000-00-00 00:00:00","updated_by":""}; $.ready(initMap()); function initMap(){ var CUSTOM_MAPTYPE = 'custom_maptype'; var featureOpts = [ { stylers: [ { hue: '#00285e' }, { gamma: 0.8 }, ] }, { featureType: 'road.highway', elementType: 'geometry', stylers: [ { hue: '#DEB408'}, { gamma: 1.00}, ] }, { featureType: 'road.local', elementType: 'geometry', stylers: [ { hue: '#DEB408'}, { gamma: 2.00}, ] }, { featureType: 'road.local', elementType: 'geometry.stroke', stylers: [ { weight: 2.0} ] }, { featureType: 'poi', elementType: 'geometry.fill', stylers: [ { hue: '#00285e'}, { gamma: 1.80}, ] }, { featureType: 'landscape.man_made', elementType: 'geometry.fill', stylers: [ { hue: '#00285e'}, { gamma: 1.80}, { lightness: -30} ] }, { featureType: 'poi.business', elementType: 'labels', stylers: [ { weight: 0.5 }, { visibility: 'simplified'} ] }, { featureType: 'water', elementType: 'geometry', stylers: [ { color: '#00285e' }, { gamma: 1.5}, ] } ]; var mapOptions = { center: new google.maps.LatLng(loc.lat,loc.lng), zoom:17, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP, CUSTOM_MAPTYPE, google.maps.MapTypeId.SATELLITE] }, mapTypeId: CUSTOM_MAPTYPE }; window.map = new google.maps.Map(document.getElementById('mapHolder'),mapOptions); var styledMapOptions = { name: 'UA Map' }; var customMapType = new google.maps.StyledMapType(featureOpts, styledMapOptions); window.map.mapTypes.set(CUSTOM_MAPTYPE, customMapType); window.marker = new google.maps.Marker({ position:new google.maps.LatLng(loc.lat,loc.lng), map:window.map, title:loc.name, animation:google.maps.Animation.DROP }); google.maps.event.addListener(window.marker, 'click', function(){ window.location = 'http://maps.uakron.edu/?id='+loc.id; }); $('#mapHolder').width('100%'); }