-1

I have a android app. There is a record route feature. I recorded the coordinates, how can I add the route to the map? I tried this but not work.

 Polyline route = map.addPolyline(new PolylineOptions()
    .add(latlng1, latlng2, latlng3, latlng4, latlng5)
    .width(10)
    .color(Color.argb(255, 255, 150, 0)));

1 Answers1

2

I think Polyline route may be hidden under the map. You need to set the Z index of the Polyline route.

route.setZIndex(100000);
Sky
  • 1,369
  • 1
  • 13
  • 23