Answer the question
In order to leave comments, you need to log in
How to get the coordinates of a moved marker in Google Maps?
Hello, the task is to get the coordinates of the marker after moving it around the map, I found the code for this here: https://developers.google.com/maps/documentation/j...
But which method returns the position of the marker on the map?
Answer the question
In order to leave comments, you need to log in
google.maps.event.addListener(marker, 'dragend', function(e) {
console.log(e.latLng); // Координаты маркера
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question