Я работаю над полилинией Android с широтой и долготой, но точки присоединяются ко мне, как уже пробуют другие Как динамически добавлять полилинии из массива
![so he paints](https://i.stack.imgur.com/6WZXe.jpg)
pointss = getCoordenadas();
for (int x = 0; x < pointss.size(); x++){
polylineOptions.add(pointss.get(x));
}
mMap.addPolyline(polylineOptions);
public List<LatLng> getAllPositions(String co, String lo) {
List<LatLng> positionList = new ArrayList<LatLng>();
FallasHelper falHelper = new FallasHelper(getActivity());
cursor = falHelper.Select(co,lo);
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
double latitude = cursor.getDouble(0);
double longitude = cursor.getDouble(1);
LatLng newLatLng = new LatLng(latitude, longitude);
positionList.add(newLatLng);
cursor.moveToNext();
}
cursor.close();
return positionList;
}