I want to get location after I dragged the marker on google map and pop up in toast.Anyone has solution for this?
Asked
Active
Viewed 1,375 times
0
-
Have a look at this, the code is here http://stackoverflow.com/questions/5968559/retrieve-latitude-and-longitude-of-a-draggable-pin-via-google-maps-api-v3 – Francisco Melicias Jun 28 '16 at 08:21
-
thank you @FranciscoMelicias – K.Sopheak Jun 28 '16 at 09:15
1 Answers
3
You can use a GoogleMap.OnMarkerDragListener
. From the documentation:
public abstract void onMarkerDragEnd (Marker marker)
Called when a marker has finished being dragged. The marker's location can be accessed via getPosition().