in Android google maps api v2 for 4.0, show the routes from current location to given lat long

前端 未结 2 614
感情败类
感情败类 2021-02-11 03:32

For android in google maps api v2 its showing whole earth by following all the steps from here http://mobisys.in/blog/2012/12/google-rolls-out-android-maps-api-v2/ , can i zoom

2条回答
  •  抹茶落季
    2021-02-11 04:20

    Android maps api V2 have Polyline class to draw the route on a map.

    Polyline line1 = map.addPolyline(new PolylineOptions()
     .add(new LatLng(50.5, 34.1), new LatLng(40.7, -74.0))
     .width(5)
     .color(0xFFFF0000));
    

提交回复
热议问题