title: Adding Marker to Google Map
body: <p>I'm creating a map using the Javascript API, and I'm having some trouble getting the markers to show up.</p>
  
  <p>I've followed this tutorial to create the map, which works well:</p>
  
  <p><a href="https://developers.google.com/maps/tutorials/fundamentals/adding-a-google-map" rel="nofollow">https://developers.google.com/maps/tutorials/fundamentals/adding-a-google-map</a></p>
  
  <p>I've then followed this tutorial to add the marker, but it's not loading:</p>
  
  <p><a href="https://developers.google.com/maps/documentation/javascript/examples/marker-simple" rel="nofollow">https://developers.google.com/maps/documentation/javascript/examples/marker-simple</a></p>
  
  <p>Here's my code now:</p>
  
  <pre><code>            &lt;script&gt;
          function initialize() {
              var map_canvas = document.getElementById('map_canvas');
              var map_options = {
              center: new google.maps.LatLng(43.643296, -79.408475),
              zoom: 15,
              mapTypeId: google.maps.MapTypeId.ROADMAP }
              var map = new google.maps.Map(map_canvas, map_options, marker);
              var marker = new google.maps.Marker({
              position: myLatlng,
              map: map,
              title:"Hello World!" });
              }
  
              google.maps.event.addDomListener(window, 'load', initialize);
  
              &lt;/script&gt;
  </code></pre>