tracking previous points on the map
tracking next point on the map