I have map application in which I have four buttons for Zoom In, Zoom Out, Play/Pause and Stop buttons. when zooming button is clicked map zoom in and when zoom out button is clicked map zooms out. On clicking play/pause button the user can pause the current journey and the state of the button changes to pause and when user once again clicks on the pause button the state of the button changes to play.
On clicking stop button ,the user can end the current journey. I have done with zoomin and zoomout buttons but I am confused on how to start and stop the current journey of the user.
1 Answer