java - how to draw line between 2 Geo points in android Google maps version 2? -


how can draw line between 1 geo point in google maps version 2?
know accepted answers available here. according answers have override draw() function. used fragments displaying google maps. can not override function activity.
can 1 me out?

how can draw line between 1 geo point in google maps version 2?

geopoint maps v1. draw lines in maps v2, add polyline googlemap:

  polylineoptions line=       new polylineoptions().add(new latlng(40.70686417491799,                                            -74.01572942733765),                                 new latlng(40.76866299974387,                                            -73.98268461227417),                                 new latlng(40.765136435316755,                                            -73.97989511489868),                                 new latlng(40.748963847316034,                                            -73.96807193756104))                            .width(5).color(color.red);    map.addpolyline(line); 

(from this sample app, described in detail in this book)


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -