MapPolyline QML element should have an easy way to clear the path coordinates. Doing this manually in a loop in javascript function is unneeded extra work and it is slow.