implemented int snap along polylines