You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.
Azri Azmi (Aba) edited this page Jun 6, 2015
·
1 revision
A dump of some useful code so that I don't keep them commented in production code.
Draw a line on Google Map
Private GoogleMap googleMap; // global field
// ...
PolylineOptions line = new PolylineOptions()
.add(new LatLng(rightLat, rightLon),
new LatLng(center.getLatitude(), center.getLongitude()))
.width(5)
.color(Color.RED);
googleMap.addPolyline(line);