After using the DirectionsRenderer to display a path, I'm struggling to remove the polyline and move on. It seems like I have no control over the markers and polylines created by this function.
Does anyone have a solution for removing such polylines? If not possible, are there any alternative suggestions?
I know that the suppress property can be used, but since I need the polylines initially, it doesn't really help in my case.
Feeling incredibly frustrated... Cheers!