$(document).ready(function () { initialize(); }); function initialize() { var latlng = new google.maps.LatLng(53.7593650817871, -0.449069797992706); var settings = { zoom: 15, center: latlng, mapTypeControl: true, scrollwheel: false, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}, navigationControl: true, navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL}, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), settings); var companyLogo = new google.maps.MarkerImage('/images/google-marker.png'); var companyShadow = new google.maps.MarkerImage('/images/marker-shadow.png', new google.maps.Size(24,40), new google.maps.Point(0,0), new google.maps.Point(77, 50) ); var companyPos = new google.maps.LatLng(53.7593650817871, -0.449069797992706); var companyMarker = new google.maps.Marker({ position: companyPos, map: map, icon: companyLogo }); }