title: Mapping google maps coordinate from a javascript variable
body: <p>I can successfully generate a google map with the code below:</p>
  
  <pre><code>var myLatlng = new google.maps.LatLng(37.77493, -122.419415);
  var myOptions = {
      zoom: 15,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  </code></pre>
  
  <p>However when I try to do it with the block of code below (storing the coordinate in a variable). The map comes up as all blue, with or with out the replace function.</p>
  
  <pre><code>var coordinate = "37.77493,-122.419415";
  coordinate = coordinate.replace('"','');
  var myLatlng = new google.maps.LatLng(coordinate);
  var myOptions = {
      zoom: 15,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  </code></pre>
  
  <p>Can anyone tell me what's going wrong?</p>