android - Adding multiple points in map using polyline and arraylist -


how draw polyline in google map multiple latitude , longitude coordinates. need draw polyline atleast 20 sets of latitude , longitude dynamically.

example android documentation:

   googlemap map;    // ... map.    // add thin red line london new york.    polyline line = map.addpolyline(new polylineoptions()      .add(new latlng(51.5, -0.1), new latlng(40.7, -74.0))      .width(5)      .color(color.red)); 

just call .add many times need.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -