title: Google Maps API v3 - TypeError: Result of expression 'google.maps.LatLng' [undefined] is not a constructor
body: <p>I'm creating a static html page to display a number of locations from a data. I've just copied one of the samples and are working backwards but I'm getting the following error in the Safari Inspector:</p>
  
  <pre><code>main.js:1SyntaxError: Parse error
  sample.htm:10TypeError: Result of expression 'google.maps.LatLng' [undefined] is not a constructor.
  </code></pre>
  
  <p>Here's my html code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html&gt; 
  &lt;head&gt; 
  &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no" /&gt; 
  &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"/&gt; 
  &lt;title&gt;Multi Markers Sample via Google Maps&lt;/title&gt; 
  &lt;link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" /&gt; 
  &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript"&gt; 
  function initialize() {
  var myLatlng = new google.maps.LatLng(-30.2965590,153.1152650);
  var myLatlng1 = new google.maps.LatLng(-30.2956470,153.1123707);
  var myLatlng2 = new google.maps.LatLng(-30.2864430,153.1360230);
  var myOptions = {
  zoom: 13,
  center: myLatlng,
  mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  var marker = new google.maps.Marker({
  position: myLatlng,
  map: map,
  icon: 'http://www.google.com/intl/en_us/mapfiles/ms/icons/blue-dot.png',
  title:"Original Location"     });   
  var marker = new google.maps.Marker({
  position: myLatlng1,
  map: map,
  title:"Tom Cruise"     }); 
  var marker = new google.maps.Marker({
  position: myLatlng2,
  map: map,
  title:"Lady Gaga"     }); 
  } 
  &lt;/script&gt; 
  &lt;/head&gt; 
  &lt;body onLoad="initialize()"&gt;   
  &lt;div id="map_canvas"&gt;&lt;/div&gt; 
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm not sure what I'm doing wrong here - it actually works in IE v8 on Windows but not in Safari and I need to get it working for both.</p>