-1
ポリラインをマップに配置した後に変更しようとしていますが、ポイントリストは変更できません。ポリラインのリスト上のCRUD操作が機能しません。ポリラインポイントを変更する
PolylineOptions polylineOptions = new PolylineOptions() //New PolylineOptions
.add(new LatLng(FromNode.Lat, FromNode.Lon)) //with 2 coordinates
.add(new LatLng(ToNode.Lat, ToNode.Lon));
Polyline polyPath = map.addPolyline(polylineOptions); //Add polyline on map
polyPath.getPoints().remove(0); //Should remove 0 element
polyPath.getPoints().size(); //Still 2 elements
polyPath.getPoints().add(new LatLng(0,0)); //Add new point
polyPath.getPoints().size(); //Still 2 elements