title: Pass a values from a tab delimited file to Google Maps object
body: <p>I'm trying to pass Latitude and Longitude values to the Google map's object from the printInfo function. I'm loading in a tab delimited file and I can grab the values from it with no issue, but I'm stuck on how to pass it to the initMap function to give it to the center object.  Should I be using a callback function to pass the values through? If so, I'm not 100% how to do that. I tried creating a Global variable but it didn't seem to work. </p>
  
  <pre><code>function initMap() {
      var mapDiv = document.getElementById('map');
      var mapProp =  {
        center: {lat: 44.540, lng: -78.546},
        zoom: 8
      };
      var map = new google.maps.Map(mapDiv,mapProp);
    }
    google.maps.event.addDomListener(window,'load',initMap);
  
  
  //Load in tab delimited file
  d3.text("ix_cities.tmpl", function(text){
  
      printInfo(text);
   });
  
  
  //print out the info in the console
  //I'm trying to pass the Lat/Long values to the google map API
  function printInfo(text) {
     var info = d3.tsv.parseRows(text);
      console.log(info);
  
      var infoLen = info.length;
  
      console.log("Cities file Length: " + infoLen);
  
      for(var i = 0; i &lt; infoLen; i++ ){
  
          console.log("Title: " + info[i][0]);
          console.log("Street Address: " + info[i][1]);
          console.log("City &amp; ZIP: " + info[i][2]);
          console.log("Phone Number: " + info[i][3]);
          console.log("Lat: "  + info[i][4]);
          console.log("Long: " + info[i][5]);
          console.log("URL: " + info[i][6]);
      } 
  
  
  
  }
  </code></pre>