finished implementing intersectSnap for lines and polylines