title: How to draw a polyline with many points in Google Maps ( and appear the polyine)?
body: <p>Why when I want to draw a polyline using Google maps V3.0 (JavaScript API) which has many points (more than about 7 points) the ployline doesn't appear , despite when trying to draw a plolyine with a few number of points it appears ?</p>
  
  <h2>edit:</h2>
  
  <p>code</p>
  
  <pre><code>var polyOptions = {strokeColor: '#FF0000',strokeOpacity: 0.6,strokeWeight: 5}
  var poly = new google.maps.Polyline(polyOptions);
  var path = poly.getPath();
  var bounds2 = new google.maps.LatLngBounds();
  
      for(var i=0;i&lt;a.length;i++){
          var zz=a[i].split(",");
          bar lat=zz[0];
          var lng=zz[1];
  
          var point = new google.maps.LatLng(parseFloat(lng),parseFloat(lat));
  
          var icon = customIcons["dot"];
                  createMarker(i,"test routing",point,icon,2);
              path.push(point);
              poly.setMap(map);
           }  
  </code></pre>