title: How to dynamically add polylines from an arraylist
body: <p>I have an </p>
  
  <pre><code>places = ArrayList&lt;ArrayList&lt;LatLng&gt;&gt;
  </code></pre>
  
  <p>I am adding LatLng points into the inner ArrayList and then I have a for loop that loops and adds polylines to the map.. except it doesnt do that...
  How can I add polylines dynamically to the GoogleMap? I checked whether or not places was being populated and it is.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>ArrayList&lt;Polyline&gt; pl = new ArrayList&lt;Polyline&gt;();                 
  for(int i =0; i&lt;places.size(); i++){
          pl.add(mMap.addPolyline(new PolylineOptions().addAll(places.get(i))));
          Log.e("size of places", "size of places is " + places.size());
      }
  </code></pre>