title: How to create an array of Google Maps Geocoordinates
body: <p>In Javascript, I have two arrays, called latitude and longitude, that have appropriately long and lat values (as strings originally from an asp.net controller, I got them from parsing an XML feed).</p>
  
  <p>What I want to do is create a new array, called points, that has the lat/lng values in it, so I can display those values on a map. Here is what I thought should work, but does absolutely nothing:</p>
  
  <pre><code>       var points=new Array();
  
         for(var i=0; i&lt;latitude.length; i++){
         points=new google.maps.LatLng(latitude[i], longitude[i]);
         }
  </code></pre>
  
  <p>the latitude and longitude arrays are the same length, I don't think thats a problem. Thanks, Amanda</p>