Do not modify the polyline positions passed in by the user.