var latitude = "41.171301"; var longitude = "-73.148278"; var site_title = "US Chrome"; var address = "U.S. Chrome - Corporate Office
175 Garfield Avenue
Stratford, Connecticut 06615"; var address_url = "U.S.+Chrome+-+Corporate+Office%2C+175+Garfield+Avenue%2C+Stratford%2C+Connecticut+06615"; var map; function initialize() {// Create an array of styles. var styles = [ { stylers: [ { "saturation": -65 }, { "hue": "#00b2ff" } ] } ]; // Create a new StyledMapType object, passing it the array of styles, // as well as the name to be displayed on the map type control. var styledMap = new google.maps.StyledMapType(styles, {name: "Styled Map"}); var latlng = new google.maps.LatLng(latitude, longitude); // Create a map object, and include the MapTypeId to add // to the map type control. var mapOptions = { zoom: 15, center: latlng, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style'] } }; var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); //Associate the styled map with the MapTypeId and set it to display. map.mapTypes.set('map_style', styledMap); map.setMapTypeId('map_style'); var marker = new google.maps.Marker({ position: latlng, map: map, title: site_title, icon: '/modules/contact/images/marker.png' }); var directionsURL = 'https://maps.google.com?daddr='+address_url; var contentString = ''+site_title+'
'+address+'
Get Directions'; var infowindow = new google.maps.InfoWindow({ content: contentString }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map, marker); }); } google.maps.event.addDomListener(window, 'load', initialize);