I am trying to add an undo functionality to my code. However, when I tried to get my marker's position in onMarkerDragStart
, it does not give me the position of marker but, it gives a little bit upper of this position, so when I tried to undo changes and locate my marker to previous location, it is not located there but upper of this point.
How can I fix this?