add onclick function that shows coordinates and set init view that the track is centered