I use DirectionsRenderer to display the path, but after I am done with this, I would like to remove the polyline and continue working. I don't seem to control the markers and polylines created by this function.
Does anyone know how to remove such polylines, if this is not possible, other suggestions?
Now I can use the suppress property, although since I use polylines in the first step, this does not really solve anything.
Heavily upset .. Hooray!
source share