clear the previous polyline before trying to draw a new one.
updates