1. Using the Location plugin, in client action, we can get location. Then append the list into the map marker list.
This event is used for displaying the information related to the marker when clicked.
-Referred from GoogleMapLibrary
In this client action, we can get the live location of the user with all the markers on the map. So, in this action, we can assign the current lat and long to the coordinate variable,
Then we reset the direction to disable the direction feature.
This action will perform when the carousel is changed
check index >=0
1.a. If the condition is false then the action will end and the condition and,
1.b. If it is true then the marker will be set to the center location.
2. Then we assign map direction lat & long to origin and destination which will enable direction.
check showDirection condition
3.a. if it is false then action will end
3.b. if the condition is true then the markers list will clear then append that current marker in the marker list variable. And action will end.