- Change the algorithm for drawing the PolyLine. This should prevent the error AND allow clicking all kinds of close points to get the line shape you want.