$(document).ready(function () { map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); });